All of that is fine. Transgender came into the national consciousness super-fast. After slavery, there were black people oppressed under color of law for a century before the country said, "huh, maybe we should wake up and treat them like people." Then, starting primarily in the late 70s, gay people stood up and said, "hey we're here too" but of course we had known about them for a long time. Still, it took two decades for Americans to warm up and start thinking that maybe they didn't understand homosexuality all that well. Trans, by contrast, has been super-marginal until less than a decade ago. It caught a lot of people off guard, including me.
So, in 2019, you didn't understand transgender. I can understand that. It's certainly forgivable. What matters now are whether you (and perhaps the AP) learned.
If your 2024 self could be transported back to 2019, would you have done the same thing you did? If not, then good for you and I don't think this incident should define you. If so, then there is a problem.