Not really, hub brushless motors are ideal for it. Mid motor setups won't work for obvious reasons. All you need to produce charge is to reverse torque. Biggest complication is triggering of the braking in convenient way.I think it's a bit more complex than you're making out - and there's not a huge amount of power that you'll get back anyway. You'd add weight and complexity for very little range if any.
Done it on RC brushless motor, and opensource driver software...