First never pry on wheel speed sensor. If it stuck, that will break the housing ever time.
I pull the wheel hub and brake dust shield first, if sensor doesn't wiggle out by hand. Then I tap out sensor with a soft wooden dowel, form inside / out. Another way is to disconnect wire from above, and leave senor in knuckle.
I do a lot of knuckle services. Where I pull the knuckle de-rust. Hone out wheel speed senor, if needed. Pound and flat file mating surfaces, where ball joint boot mats/seal. Clean or replace needle bearing and brass bushing. Replace rear seal. Pack beings with Mobil 1. Then on assemble, I use marine grease, on non bearing surface that are bare metal. Which includes wheel speed senor mounting area & hole.
On restore jobs, I do replace cracked wheel speed sensor. But on your own vehicle. You can clean up and glue (JB wield), let glue sit and then mount in knuckle. If later it fails, replace it.
View attachment 2972196
View attachment 2972197
View attachment 2972198
View attachment 2972200
View attachment 2972201