If the selector lever will not move from P using the proper shift procedure, continue to hold down the brake pedal.

Take the vehicle to an Authorized Mazda Dealer to have the system checked.
Shift-Lock System
Manual Shift ModePDA (Proactive driving assist)
In the Subaru Solterra, the Proactive Driving Assist (PDA) system
continuously monitors the surroundings and, when a detectable object is identified,
it can automatically apply gentle braking and subtle steering input to help maintain
a safe distance and reduce the likelihood of getting too cl ...
Jacking Positions, Vehicle Lift (2 Supports) And Safety Stand (Rigid Rack) Positions
Jacking Positions
WARNING:
Improperly jacking a vehicle is dangerous. The vehicle can slip off the jack
and cause serious injury. Use only the correct front and rear jacking points
and block the wheels.
Use safety stands to support the vehicle after it has been lifted.
...
Master Cylinder Removal/Installation [Mzr 2.3 Disi Turbo]
1. Remove the battery and battery tray..
2. Pinch open the clamps using pliers and disconnect the vacuum hoses from the
insulator bracket as shown in the figure.
3. Remove in the order indicated in the table.
4. Install in the reverse order of removal.
1
Nut ...