But you don't gain much, there's not a lot of weight to slow down with an ebike so regen gives you very little back.
You do lose the ability to efficiently climb steep hills with a hub motor, and they add a ton of unsprung weight if you have rear suspension which ruins its performance, so if that's your kind of terrain they're a bad choice.
Would save on brake pads though.