I dislike when it is shoehorned into a story, so that itself becomes the "plot" and not the story itself.
And that is really the difference in the modern era, compared to the past era. And we have had female superheroes for as long as we have had superheroes, the third TV superhero series in the US was Wonder Woman after all. Hell, in the past we have even had a "Black Iron Man". And here is the thing, nobody gave a damn! Hell, they are gearing up to a remake of "Secret Wars". However, I remember the original comic series in 1984, and they even commented on that in the comic itself.
For most of us in 1984 that read that, Reed Richard's response was pretty much like most of us readers.
"I'm curious... were you surprised there was a Black Man under the metal?"
"Hmm... No, I never gave it a thought! I knew there was a MAN under there..."
And case in point, I am actually an "amateur author", and have written a series of superhero stories that many might consider "Woke". A bad-ass black guy that is impervious to damage and loves to jump off of three floor buildings and land on criminals. But in reality they are a shape shifter, and in their original form are a slacker Jewish girl. Another is a statuesque Chinese girl that goes into battle with an actual dire wolf, but she also changes form, and in real life is petite and blind, the dire wolf is her German Shepherd guide dog. With their "Sensei" being a former Special Forces soldier who was badly injured in a war, and tries to teach others how to defend themselves and attempts to avoid violence whenever possible (and when forced into it uses as little as possible).
Each and every one in many ways a classic "comic book trope", but I turned them on their heads slightly. But none of those being used in an exploitive manner. Hell, in the first draft of my original story in that series, I did not even reveal that the "main hero" was somebody who changed gender and races for a couple of chapters. But a lot of people were upset because the character would go through their memories and they included them "parking" with a guy, and that caused a lot of confusion if I had made the hero gay (and a crossdresser). So in later editing I made it clear earlier that they changed bodies, and those were the memories of the female identity.
We have even had some fun "race or gender swaps", in media and nobody gave a damn. In Armor (1984 novel), it featured a soldier in an exoskeleton suit, and like in the game Halo we never saw him outside of his suit. Until the end, when it turns out he was black. And none of the fans of the novel cared. In Starship Troopers (1959 novel), it still passes most readers today that the main character was from the Philippines. And nobody gave a damn in Metroid when it turned out the badass in an armored suit you played for the entire game was really a chick.
However, in the last decade or so this has shifted. I could not care less what the race, gender, or even sexual preference of a character is. What I do not want is it being shoved in my face, them being perfect in damned near everything, and have it actually work as part of the plot. Most times now it is gratuitous and damned near exploitive, and that is what I object to. The story and plot have taken a back-seat to either making the character "practically perfect in every way", or constantly going out of their way to rub such facts into the faces of everybody.
And it is not even "swapping", so long as the story and character are good. Case in point, I loved "The Equalizer" in the 1980s, with Edward Woodward. And thought nothing of the more modern remakes with Denzel Washington. He acts like the Robert McCall of decades past, and does nothing to scream "I am this bad assed because I am black", it is more like the original. "I am bad assed out of a sense of justice, leave it at that".
In the 1980s, you could take two iconic movies with a Marine Drill Instructor and swap the roles, and both would be equally good. Lou Gossett Junior and R. Lee Ermey could be swapped in their most iconic characters, and both An Officer and a Gentleman and Full Metal Jacket would have been incredible movies. Neither of them were great because of their race, but the actors that played them combined to a great script. But in the modern era? Neither one could be made, because the story would be almost completely unrecognizable because the story would take a backseat to trying to force in political crap that was not important to the story in the first place.