You're trying to thread a very fine needle here. You're technically correct that it's not racist, it's xenophobic.
We're not analyzing an essay and pointing out syntax and grammatical errors and how the person's thesis statement betrays their conclusion on a technicality.
We're talking about...