Tesla is brake by wire and most of them use electric brakes (I'm not talking about regen)
See https://www.evcreate.nl/wiring-the-tesla-ibooster/ as an example
"Some Tesla vehicles use hydraulic brakes, but not all. Recently, Tesla has equipped its cars with a full self-driving system. Tesla’s latest car comes with full-electric Brembo brakes. These brakes use electric actuators instead of hydraulic fluid pressure to actuate."[1]
I'd be curious what mitigations they put in place regarding an electrical system failure.
[1] https://www.mech4cars.com/tesla-model-s-braking-systems-all-...
[1] https://teknisimobil.com/mobil-listrik/penjelasan-komponen-e...