If you want braking without putting it back into the pack, you'd have to setup what is called Plug Braking, sometimes done with coils of wire wrapped tightly around the bike frame (to help dissipate the heat), and then a switch is setup to do this in extremely rapid succession, in this order:
--turn off controller output (ebrake or other disable line)
--disconnect motor phase wires from controller
--connect motor phase wires to plug braking coils
These coils are setup for some amount of resistance (impedance) so it's not quite a dead short, so you get a smooth non-lockup braking effect at whatever your max speed would be. They are wired to essentially short across the motor phases, which produces extreme drag on the motor, and very effective braking.
You could also set it up so only two phases are shorted rather than three, for higher-speed braking, then at some lower speed limit it engages the third phase short, too, increasing the braking effect notably higher than would be safe from the higher speeds. (assuming you setup the two phases to be sufficient at the higher speeds).
--turn off controller output (ebrake or other disable line)
--disconnect motor phase wires from controller
--connect motor phase wires to plug braking coils
These coils are setup for some amount of resistance (impedance) so it's not quite a dead short, so you get a smooth non-lockup braking effect at whatever your max speed would be. They are wired to essentially short across the motor phases, which produces extreme drag on the motor, and very effective braking.
You could also set it up so only two phases are shorted rather than three, for higher-speed braking, then at some lower speed limit it engages the third phase short, too, increasing the braking effect notably higher than would be safe from the higher speeds. (assuming you setup the two phases to be sufficient at the higher speeds).