Using figure 5 of the Texas Instruments datasheet, which represents the typical motor controller of an EV,
https://www.ti.com/lit/an/slua963a/slua ... 0513375551
one will notice the parallel diode within each of the six IGBTs, which gets forward biased when an EV enters its
re-gen mode (motor voltage greater than the battery voltage). Each winding of the motor will then conduct
a charging current back into the battery thru the upper and the lower IGBT diodes. The controller (MCU)
determines which mode the IGBT operates in by controlling its gate signal.