The only way I can see this getting corrected is for schools to start encouraging girls to get into technical subjects and provide better support for those who take interest or for companies to provide programs to educate women into technical roles (imagine a high quality code boot camp, except company run or sponsored).
Also, if you do find a good female candidate, she's probably going to get hired by Google or Facebook and accept their offer instead. They offer less risk for more pay and less attitude, which is an attractive bargain to many people.
How so? Asians and Indians are very well represented among those categories in SV and the other tech hubs as well.
Among the MAGA (4 most valuable tech companies - Microsoft, Apple, Google, Amazon), there are 2 Indian CEOs and 1 openly gay CEO. Alphabet's board of directors [1] is about as diverse as the NYTimes board of directors [2], and way more so than say Coca-Cola's board of directors [3].
Engineering is largely male (90/10 or so) but professional employment within tech companies as a whole is generally quite mixed (60/40). As a multiracial Asian/white entrepreneur I don't feel unrepresented at all - hell, I'm practically a stereotype.
[1] https://www.bloomberg.com/research/stocks/private/board.asp?...
[2] https://www.nytco.com/board-of-directors/
[3] https://www.coca-colacompany.com/our-company/board-of-direct...
Lacking compared to what? When comparing to the diversity of the U.S. or even California, most tech companies way over-index.