That rather depends on which “tech” you are talking about.
Google and such vastly over-hired, which also meant lots more college students went into coding and such, then Google et al dumped a lot of those lower level coders and programmers just as the grads hit the market.
Granted that a lot of coding and programming has been going overseas for literally decades — one guy I know who I suspect is just an average coder at best, threw in the towel, went back to school, and became a dentist. (I also have a nephew who “veered off” his freshman year and went straight into dentistry - he’s making fistfuls of money in his 1st few years.)
In any event, “tech” covers a lot more than coders and programmers, and a lot of STEM areas are doing great. Ditto for many health fields and service professionals (plumbers, electricians, appliance repair, etc.)
The bottom line is, our future generations are not welcome, no matter how much is left in the US.
And let's get this out of the way. I have no animosity to the H1Bs and offshored staff that are getting these jobs. They are legally taking advantage of the opportunities offered to them, and it isn't their fault that Americans choose cheap labor over their own kids and Vets. If we want to blame anyone for our problems, we can look in the mirror and start with the people staring back at us.
I don't blame the companies either. In the late 90s and early 2000s, we had a choice between the companies that offshored and the companies that tried to keep their labor forces here, and we voted with our wallets. The companies that hadn't offshored had to choose between off shoring to compete or going out of business. Now, good luck trying to find anything made here.