yes but the 'black people as savages' is a stereotype which has existed. it is an offensive stereotype.
Yeah, but these were not black people. They were aliens with dark skin. The only way it's racist is if the episode attempts to make the statement that this behavior is representative of black people in general.
By that logic, it's offensive to portray white people as tax evaders.
Ensign Kim was good at math, is that racist? Is Sulu being good at fencing racist?
It's more racist to cast your roles around fear of being stereotype adjacent and make your characters into the Greendale Human than it is to actually cast your show in a way that rubs up against stereotypes.