Regenerative Power on DC bus between DC motor and voltage supplier
If you can put enough capacitance on the DC bus to absorb the energy without going overvoltage that would be the simplest solution without wasting energy.

If not, a common approach is to use a bank of resistors and a comparator on the DC bus.  When the voltage approaches the maximum allowable the comparator will turn on, which turns on a MOSFET and puts the resistor bank across the DC bus to dissipate the energy as heat.  The comparator should have some hysteresis to avoid high frequency chatter.

Lastly there are more complicated regenerative schemes to store the recovered energy in a battery or regenerate it onto the AC line.