I am aware that Islam is a religion. I believe the logical reason why it is called racism to ban Muslims is that a large portion of them are non-white. As are the countries in the ban. I personally would prefer the term xenophobic as Biden had used or generalizations but racist is shorter so I can see why people use that term. I'm sorry it triggers you, though.
Either case, you are correct. I was wrong. Six of those countries had confirmed terrorist cells. The countries that were banned were Iraq, Syria, Iran, Libya, Yemen, Somalia, and Sudan. The Islamic State had territory in Iraq, Syria, and Libya; Al-Qaeda in Yemen; and Al-Shabaab in Somalia.
However, at the time, there had been no attack on US soil by any of those countries yet Afghanistan and Saudi Arabia were not among those countries banned. So, terrorism was not the reason why Trump banned travel from those countries. Instead, the purpose was to limit the flux of refugees from those countries. It is this contention that allows people to easily argue that the ban is motivated by racism rather than terrorism. After all, Trump is not a fan of refugees.