I have heard this called racist a few times and at risk of sounding like a pedant or an apologist I respectfully object.
Creating abusive policy targeted at people from certain countries seems xenophobic, isolationist, draconian, cruel, stupid.
Racism is a far more evil concept than any of those.
Abusing and rationalizing the abuse of people because you have made a generalization based on their geography, ideology or culture is certainly wrong.
Abusing and rationalizing the abuse of people because you believe they are genetically inferior is on a different level of depravity.
When we use "racism" as a catchall term for all bigotry and bias, we do it at the peril of diluting its power when that particular flavor of shitheaded thinking needs to be classified.