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 ModeFront passenger occupant classification system
The Subaru Solterra is equipped with an advanced front passenger
occupant classification system that continuously monitors the status of the front
passenger seat. Based on detected conditions, this intelligent system automatically
activates or deactivates specific SRS airbags to optimize safet ...
PCM Removal/Installation [Mzr 2.0, Mzr 2.5]
1. Remove the battery cover..
2. Disconnect the negative battery cable..
3. Remove the following items:.
Battery
PCM cover No.1
4. Disconnect the PCM connector..
5. Remove the battery tray and PCM component..
6. Remove in the order indicated in the table.
...
System
The system operates only when the driver
is in the vehicle or within operational
range while the key is being carried.
NOTE
When the battery power is low, or in
places where there are high-intensity radio
waves or noise, the operational range
may become narrower or the system may
not operate ...