Ah, the last photo tells the tale. The screw head is accessible.
Two different questions: is it to code, and would an inspector flag it? I'd say no and yes.
There are products that would resolve this as it sits. There are extension rings that would extend the box out to the back of the faceplate, in both metal and plastic, that could be applied here.
What would have been very good but quite expensive would have been to use adjustable boxes. These are great in kitchens or any other place where the depth of the tile and stone to be applied to the walls is unpredictable. After the wall is finished, a few screws are backed off and the box moves out to the right place.
I'd use the extension rings in this application.
It is actually painfully pretentious. There was no reason that the tile setter could not have produced a consistently flush surface in the area around the electrical.