l'asserzione che usi e' un positive lookahead, tu invece vuoi una negative lookbehind, quindi /(?<!x)z/