I'm fairly sure its inside the pump under the top cover plate and the sensor joins into the part indicated. Its just a way of connecting the loom to the pump.
I did have an old pump which I took apart and iirc it was a block mounted either adjacent or below the pump shaft.