Your arguments are in the wrong order. x in y is equivalent to in(x, y), not in(y, x).
This wasn’t very explicit in the in docstring, so I submitted a pull request: note infix syntax for "in" and "∈" by stevengj · Pull Request #54091 · JuliaLang/julia · GitHub