Some sort of energy capture loading a supercapacitor to power the brakes might be feasible, with a small battery backup. You don't need a lot of power storage if you can reliably keep the capacitor full during use. An esp32 has way more than enough clockspeed to keep the reaction speed under 10ms.
To me, there's a more complex issue, which is the braking feedback mechanism. You can't just have off/on - you need a gradient, and that needs to be communicated to the rider by feel. The same feel has to be perceived across every braking context, or it won't be predictable and people will crash.
Any sort of ABS or smart brake algorithm has to predictably augment the human control feedback and seamlessly integrate with motor controls.
Using nfmi would be preferable to wifi or bt, to reduce the possibility of interference.
Lastly, your system needs to fail gracefully. If the controller or mechanics of a brake fails, the motor controllers have to be aware of it, and limit speed or go into a limp-home mode.
So if you have a siloed power store, secure and reliable wireless networking, human compatible controls and brake behaviors, and graceful failure mode, and at least one layer of redundancy, you could have a feasible braking system.
Since brakes are almost always conveniently close to the frame, though, in not sure that wireless buys you anything compared to wired. Electronic braking has most of the same problems regardless of wireless, and wireless doesn't simplify or improve any problems (that I can think of? ) Maybe isolating each brake from the drive controller is desirable for reliability?
So with all that complexity, using regular old hand brakes seems like the best solution. Even if you want smarter braking, using a system that works with hand brakes is probably better than a wireless or purely electronic overhaul.
The sensorial feedback using analog hand brakes is the peak of UI - interfering with it requires some advantage that exceeds the loss of feedback and reliability.
I can see wireless controls allowing for novel form factors where brake cabling isn't possible or becomes complicated, but for most regular bikes, it seems unnecessary.