Earphone is not working after iOS 18 update in iPhone 12

Facing issue in earphone not working in iPhone 12 after updating iOS 18.1. It is so frustrating. Can anyone have any solution to this? Nothing is happening after resetting or rebooting the phone many times.

Earphone is not working after iOS 18 update in iPhone 12
 
 
Q