You may need to disable system integrity protection (SIP).
I know the routine for doing this on Intel Macs, not sure about m-series Macs.
Give this a try:
First -- check SIP:
Open terminal (in utilities)
Type:
csrutil status
...and press return.
You should get either "enabled" or "disabled".
If you get "enabled", here's how to turn it off.
Power down, all the way off.
Press AND HOLD the power on button for about 5 seconds.
Screen should display (in small text):
"Continue holding for startup options"
When you see something like:
"Loading startup options",
...you can let go.
You should see the icon for the hard drive.
Don't click this.
Click "Options" instead.
The recovery options will load.
Now you'll see a screen with a list of choices in front of you.
Don't choose ANY of them!
Instead, go to the menu bar.
Under "Utilities", choose "Terminal".
The terminal window will open.
Type this:
csrutil disable
...and hit return.
Once this is done, QUIT terminal.
Now go back to the menu bar, and under the Apple, choose "Restart".
The Mac will reboot.
When you get back to the finder, open terminal again.
Again type:
csrutil status
... and hit return.
Now, terminal should respond with:
csrutil disabled.
THIS IS WHAT WE WANT.
NOW try to install the apps you need again, and see if the necessary extensions get installed this time around.