I have replaced it a few times before and it was never an issue, i just used a deep socket (i think 13mm or 14mm i can’t remember hex size off my head now) and carefully turned left , because i know the front head gets all kinds of dirt in the rain sometimes turns things to rust like the intake pipe bolts.
Remove the airbox and remove the intake pipes (carefully) (Replace the O-Rings!)
Use a tiny drill , and drill it out (counterclockwise) on a slow rotation.
Because deep there is an oil chamber, so i am afraid to caution you to becareful, if particles fall inside or broken parts = I would remove the engine head & re-install it.
If you start a bike with particles inside the oil flow chambers (where your sensor is going) , it will travel and block smaller jets inside the engine , there is a few high & low pressure jets inside the engine that spray oil everywhere lubricate the motor.
So whatever you do , i would do it with extreme caution – stupid thing is made of brass , if it was steel , we could weld a strong bolt to it. then turn left to loosen it out of the engine.