A wikipedia article that itself cites an opinion piece by Janet Yellen from 2020 that does not source her claims. And even so, she uses weasel-words like "similar occupations", i.e. not same, and "appear nearly identical in background and experience". No sources, no explanation how similar occupations and backgrounds/experience are considered.
That's because Janet Yellen, just like you, is pushing a political, feminist point of view.
One of the more insidious notions that came from the feminist movements of the 60s and 70s was that women could have it all. You can have a job, you can have a family, you can have all the things that men have!
That stemmed from the misguided idea that men "had it all" to begin with. It's not that women didn't deserve the same opportunities, of course they did and still do. The problem was that "having it all" was a horrible fucking lie.
When long term spousal support is at issue, I've only handled one matter where wife had to pay husband. It's almost always husband having to pay SS (in long term marriage i.e. 10+ years).
Oftentimes it's because the parties agreed early on that husband would work and wife would stay home with the children. Despite the left's insistence that this is outdated and oppressive, it's not. It's still very common and is the basis for the issuance of a long term/permanent SS order (note: this is California, other ass backwards rules in red states probably don't apply).
The point is that yes, on average, men do make more than women largely because they stay at their jobs longer due to the family dynamic, not because the nefarious patriarchy is out to get them. Leave the workforce for 5+ years and yes, you will get paid less than if you'd stayed at that job, and yes, husband will be making more than he did 5+ years ago.
NOTE: I'm leaving out a ton of details. It's Friday night and I'm working tomorrow and traveling for work on a goddamn Sunday.