You could also use any other ground, but this one is meant for this.
You need some JST (XH?) connector for this. However, you could also use two female Dupont jumper wires and secure them with hot glue.
The hot glue can be easily removed in the future with some 99.9% IPA. It creeps under it via capillary action and the glue comes off in one piece. It works pretty well. 99.9% IPA won’t damage the connector, PCB, cables, etc. It’s also used for removing flux residue from PCBs, for example. It evaporates completely if you wait briefly. It’s very convenient stuff. You can also use it to clean the optics (but not the acrylic window).
You can also buy JST “pigtails” — usually 10-15cm long — in bundles from Amazon and AliExpress and so forth. Then you can connect those short wires to wires to the interlocks.