Edit: thanks for info below.
Edit: thanks for info below.
There are indicator lights on the outside of the cars that show the status of the hybrid system. They also have a emergency cutoff switch that is large enough for them to push with a fiberglass pole.
In some cases especially in practice if the car is badly damaged they will send one of the safety and intervention vehicles back to the pits and fetch a crew member from that car with tools to properly safe the hybrid system. I've also seen where the Marshalls will have the driver climb out of the car stand on the side pod and jump clear, then take 4 or 5 bunny hops away from the car.
There's also an indication for corner workers that alerts them to the unsafe condition.