Important thing for all who can see this.
If someone confronts you on your racism or sexism... that means that they like you enough and trust you enough to hear and listen.
If they didn't think you were redeemable, if they didn't think you were worth it, they would roll their eyes and just avoid you. Block on sight, shut down in conversation.
If we confront you about it, no matter how bruskly it may seem. It means that we legitimately think you are better.