Break-by-wire (zero mechanical linkages) is completely legal and BMW have been producing cars with it for a few years now.
Even full drive-by-wire (zero mechanical linkages for their brakes or steering) are legal. But there’s currently no production cars with it.
But even in a brake-by-wire system, there’s a full force feedback (actuator acting on the brake pedal, so the driver can feel what the brakes are doing). So if the communication with the break-by-wire system fails, and the system falls-back to its standard config, then you need something that can produce equivalent to human braking power. Otherwise you’ll never overcome the force feedback from the brake-by-wire system.
You could probably modify your break-by-wire system to completely disable the force feedback. But why take that risk? You don’t want your emergency stop system failing because someone forgot to disable force feedback.
Brake-by-wire still requires a backup physical connection. There may not be engine vacuum giving you extra strength, but if there's zero power the brake pedal still has an effect because it will physically actuate the brake master cylinder. Hybrids and EVs have more complicated systems to manage the transition between regenerative and friction braking, but if the electrical system goes completely dead the brake pedal still must engage the friction brakes. (I literally just changed the brakes on a Prius, and to bed in the pads/rotors, I pulled the relays controlling this system. The computer gets very mad, and the brake pedal requires a fair bit of force, but it still works.) Likewise, steer-by-wire also has a failsafe relay that will, in the absence of power or other failure, cause a clutch to engage and make the steering wheel move the wheels.
Electronic throttles, on the other hand, have no such such mechanical fallbacks. If the hall sensor on the accelerator pedal stops working (magnets, how do they work?) the engine will continue to idle but won't accelerate. There's no legal requirement for a backup linkage.
I'm not aware of a legal system in production road-going vehicles that has zero mechanical connection for steering or brakes.