Brushless motors have been the norm in e-bikes and e-scooters for a long time. And even modern brushed electric motors in EVs have electronic control via microcontrollers. There's no way you can get maximum power efficiency out of it without software control.