I don’t think regen braking has anything to do with sensors. In simple layman’s terms, It’s just the same drive motor changing into a dynamo to generate energy when you let go of the accelerator. Regen is prevented and motor decoupled from drive, only if the battery cannot take anymore power...