Essentially it doesn't work too well on e-bikes since skilled riders don't do much hard braking as it wastes inputted energy, and downhill the natural runaway speed of a bike can be used for the kinetic energy to propel it up the hill the other side or further along the following flat. Doing that uses all the stored energy, but converting it via the hub motor braking into electricity involves an efficiency loss. Equally, when that generated electricity is converted by the motor into mechanical energy later, there's a further efficiency loss. So in essence it's more a marketing gimmick rather than a sensible way of using a bike's kinetic energy. In addition, regen means the hub motor has no freewheel, so pedalling without power has to overcome the drag of turning the dead motor.
However, the BionX motor has a switched regeneration position for use downhills and the original "Motorised Wheel" made by the Birkestrand Corporation had regen too. The latter became the Sanyo hub motor later and Giant used it on their Twist 1 and Twist 2 bikes with regen, but they were not successful since the motor drag lost more energy than the regen gave back. Therefore they dropped the regen, put in a motor freewheel and relaunched as the Freedom model, much better.
Despite all this, Panasonic have produced a regenerating brake front hub motor and 3000 bikes with them are being sold in Japan for a couple of years trialling. We may yet see them here.
.