I don’t read characters as paper dolls of the author unless told otherwise. A racist character can be repugnant for that quality alone or perhaps for others or even redeemed by others.
As for villains even as a kid in the 70s I could imagine bad guys of any ethnicity.