I had this problem, and I spent 2 hours just about bashing my head against a wall trying to figure out what the problem was. Turned out it was because I had a variable name "homo_typic". It saw the word "homo" and thought it was a slur. All I had to do was replace that variable name with something more acceptable, and the problem was solved.
Today I learned that Github Copilot is easily offended!