It is protectionism, not racism. It has to do with citizenship, not race.
It's 100% got to do with racism - https://archive.ph/6NUEN
Protectionism is the excuse. Just like many excuses have been used in the past - "national security" to justify internment of people of Japanese origins, "states' rights" to justify slavery, "forced busing" to justify segregation, among many others.
Now it's "DEI" to justify racism against African Americans, and "H-1B" to justify racism against Indians.
You wouldn't bat an eye if the Germans were coming in. Let's be honest.
Just like Europe made a ton of fuss about Syrian Refugees but accepted Ukrainians with ease.
It's racism being presented as protectionism.
The people pushing this round of protectionism have substantial overlap withe the people pushibg an explicitly race-based view of citizenship; they are not orthogonal concerns.