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 ModeMass Air Flow (MAF) Sensor/Intake Air Temperature (Iat) Sensor No.1 Removal/Installation
[Skyactiv G 2.0]
CAUTION:
Be careful not to hit the sensor element or allow foreign matter to get on
it during sensor removal/installation. If the sensor element is hit or foreign
matter gets on it, an error may occur in the sensor output signal resulting
in deterioration in the engine control.
...
Operating Tips for Audio System
WARNING
Always adjust the audio while the
vehicle is stopped:
Do not adjust the audio control
switches while driving the vehicle.
Adjusting the audio while driving
the vehicle is dangerous as it could
distract your attention from the vehicle
operation which could lead ...
Digital key
In the Subaru Solterra, a compatible smartphone can function as a
fully integrated replacement for the traditional electronic key when the dedicated
Digital Key App is installed. This advanced feature also allows secure sharing of
access with family members or trusted individuals through the s ...