I’m not sure if this is just something I’m missing but when using select mask it selects straight through the mesh. Is there a way to use the select mask only on the front facing surface without it going through the mesh?
For the brush mask there is an option in the stroke panel called « front facing vertex only ».
It’s not available for selMask at the moment,
Maybe you want to use « connected topology » depending on what your scene is.