First, if it was just "ethnic groups" it wouldn't be "racist," as "ethnic groups" aren't "races" ... it would just be bigoted.
Second, one race was owned, largely, by another race in this country, and was called that word by their owners, and later by others in that race who wouldn't give them basic human rights even after they were "free" ... and still use it to degrade that race, and people who are of that race. That once owned and human-rights-deprived and still degraded race has opted to "take back" that word as a small showing that they won't be degraded any longer. This is not a racist usage, and the "prohibition" of the offending race of using the term is not of racist origin, either.
No matter how many times you repeat your childish, unthinking phrasing of the issue, it isn't going to change this reality. You can teach your children that using bigoted and racist slurs is OK, and your children will suffer as a result. My children will continue to be high achievers who understand human behavior and societal mores as an adult understands them.