Lock x-axis only in sculpt?

As shown in the picture, I don’t want to mirror the mesh for the time being, and I encountered some problems when using sculpting: I want to lock the point on the x-axis (red edge)

Can this be done using geometry nodes or scripts?

Thanks!