During wintertime when you can't ride the bike you have time to do maintenance. Or at least you try

My side stand was not snappy anymore, so I decided to dismantle it and give it a cleaning/greasing job.
Without much thought I simply tried to loosen the fixing screw from the front side which turned out to be a bad decision.
I did not recognise the stand sensor is mounted on the back and fixed with its own nut on the very same screw. By turning the fixing screw I managed to wedge the SSS nut into the sensor, nearly damaging it beyond function.
So be warned! First step when dismantling the side stand has to be to unscrew the nut of the SSS and take it off.
Only then you can loosen the screw of the side stand!
Refer to the sketch attached for a better understanding.
When reinstalling the SSS, be aware that the litte nose has to fit into the groove of the side stand for proper function.
TIP: You don't need to unhook the springs first, that's a hassle you actually don't need. When the fixing screw is removed, you can turn the side stand upwards and use it as a lever with very little force.
BTW: I am looking for a replacement for the damaged SSS now. I learned there are two types. A) with sliding contact B) with hall sensor. The latter is the more modern version.
Problem is, the sensor on my Ribelle has three wires which makes sense for a hall sensor, but only two wires are used - if you look on the connectors, the SSS connector (female) has three contacts, the bike's connector (male) has only two. I find that a bit mysterious.
Anyone knows what is going on here?