If you intend to match double quotes in your input, you should avoid them:
"(\\"z1\\")\\|(\\"z2\\")"
And you can reduce the rotation with z1|z2
:
"(\\"z1\\|z2\\")"
Otherwise, if double quotes are not part of the input, the pattern should be:
"(z1\\|z2)"
source share