If an employer ends up with a certain gender or race group predominating, they should have nothing to worry about if they can point to their selection procedures and show that every applicant was treated equally and fairly, and they simply employed the best ones for the job. If certain demographics are underrepresented there is probably a good reason, i.e. performance not up to scratch.
The issue with this is that the woke crowd will argue that there isn't equality of opportunity. If you happened to have a 100% merit system and that resulted in 95% white male/private school/ middle class background you would be hounded by HR about your lack of diversity regardless of how equal the selection process was.