As an aside for the next person who comes along and reads this: There are 2-to-3-pin adapter cables widely available as this is a fairly common issue. Typically very short extensions.
https://classic-cycle.com/All/3747/HIGO/Julet-adapter-cable-19-5-cm-for-ebike-2-PIN-red-to-3-PIN-yellow
You...