I know this forum is highly skewed towards Saas/JS/web stuff, but there's an entire industry of deep tech software and the payouts are excellent.
People confuse the 'webshit' engineers (your words, not mine) with being interested in technology. They're not. They're interested in money. I am too. I just happen to be interested in deep tech stuff as well. A lot of people in tech don't seek compensation and then complain about it. Always go for compensation, startups, and high risk ventures (i.e., go into a good business). That's my advice.
> Maybe I just wasn't looking in the right places.
Did those places have the potential to IPO / exit for multi-billions of dollars? If not, yes, you were looking in the wrong place.