Or, simply shift the automatic transmission into Neutral; then brake. Unless the gearshift is locked up, anytime a car speeds out of control simply shift an automatic or manual into Neutral - the engine will still be racing, but at least the vehicle's stoppable. We're spoiled by driving automatics only. People have forgotten they have the ultimate control to shift into Neutral.
That only works if you have a mechanical link.
Not all cars have a mechanical linkage to the gearbox any more.
An electronic shifter was blamed for the death of the actor Anton Yelchin because he failed to engage it properly.
Electronic connection between most shifters and the transmission these days.
I have a few manual boxes and one automatic.