Yep. It's not just the toxic environment though. When a company gets a reputation for misogyny fewer women will apply for job there. You don't want to waste your time. We have families to support too. If you get hired and accept the job, you'll be sidelined do promotions in favor of men who haven't earned them, you'll be denied raises, and you'll be expected to keep the break are clean because you're the woman, so more work.
Again, women have families to support too. No woman wants to bother with this constant bullshit any more. There are other companies things like contract opportunities.
Companies need to deserve top talent. If they're not getting it, it's because they don't deserve it. Let them fail.