Since the latest update (12.2) Auto Mask while using brush seems to not auto mask.
I've been trying to mess around with GPU acceleration and without. Same issue regardless.
I've heard about this problem from another user aswell.
MacBook Pro 16" 2019
6-core i7 2.6Ghz
32GB RAM
Radeon 5300M 4GB
macOS Ventura 13.1