Eventually my brain settled, and I figured out how and why I had done what I did, outside of the "I thought it was okay in this context". And now I know it is highly unlikely that it happens again, because I put in the work.
But, no one else can put in the work for you. You gotta do that, you gotta look and think, if someone tells you or hints at you being racist, you own that shit and you deal with it, and TAKE your time, because it fucking takes time.