Racism is a belief system, the crux of which is that one race is superior to the others. It has nothing to do with making comments that might be construed as insensitive, but alas, that’s the way it’s being defined now.
The accusation of racism, these days, is nothing more than a lever or a weapon - it has lost all other meaning.