If the old pipe is junk now there's a chance you could grind it out of there
Just cut it out roughly with an angle grinder and then once you have the old sensor surrounded by jagged metal just go at it slowly with a grinding bit trying not to touch the thread until there's not much holding it in there and unscrew it
Probably just easier to try to get a replacement one though