Laws against electric assist bicycle with energy recovery?
New Zealand

There is no speed limit for a bicycle, but you can be charged for "dangerous use of a vehicle"

An electric bicycle must have no more than 300W of power in addition to the rider's mandatory pedal input.  Bicycles do not need registration or licencing, but there are lighting/reflector, braking and helmet requirements.

Any more than 300W and it becomes an electric motorcycle, regardless of whether it has pedals or not. At that point it requires licencing and registration and the rider needs a motorcycle endorsement on their driving license.

If your bike has electric brakes that do energy recovery, then that is irrelevant to the power output of the motor.  Your ride does require two independent braking systems, so that failure of one does not prevent the other from working.

By comparison, a liquid fuel motorbike without pedals, and cubic engine capacity of under 50cc still requires registration and licencing, but can be ridden by a licenced rider with a car endorsement only.  A motorbike licence is not required.