Sense Connector Presence On BMS
I don't know if this is a usable approach, but if you have another contact on the pack connection, you could tie that to ground via the cable which is plugged in.

That contact could be analyzed by the MCU to see if there is a connector plugged in.







simulate this circuit &ndash; Schematic created using CircuitLab