Hi all bit of urgent help as the fuel filter is half off.

The wiring sensor at the bottom i can't get off. Can't seem to remove it from the bottom of the filter. Any tips.