I’ve had an ebike that had regen (Stromer ST2). It wouldn’t have any effect on the battery, but was great for savings life of your brake pads
Of course there is the minor problem that the hub was mounted in the rear wheel so it's only good for gentle to moderate braking, but thankfully that is the vast majority of what you do.