It can get stuck really tight and you make break the wires off.
If you can, slide the element back in, heat the nozzle up, turn the printer off. while the nozzle is still hot, hold the block with pliers. if there is some metal sticking out from the temp sensor then try to grip that and rotate it back and forward trying to pull it out.
You can also carefully drill a small hole in the front of the block. you will feel the bit reach the hole where the sensor is. then try to push it out.