After the .com bomb, lots of kids in the early 2000's saw their parents lose their jobs and subsequently chose non-tech related fields. This lead to a dearth of techies in the early 2010's which pushed up salaries. Skyrocketing salaries attracted lots of people into techie fields, as well as policy jockeys calling for "teach everyone to code", and other nonsense doctrines. Well, the pendulum is swinging the other way kiddos, that's how capitalism works.
There's a couple of lessons here. First, ebb and flow is how capitalism works. What was hot last year, may be cold this year... anyone wanna buy a bored ape nft? bwa haahahaha . That's the danger of jumping on the latest hot fad, including jobs.
If you want something that can't be disposed of, need for trades is huge. HVAC, plumbing, electrical work, not glamorous, but they pay decent, you'll never be replaced by a chatbot, and you won't have a mortgage sized student loan.
Remember, there's always room for good people. That means go above and beyond. Do you're best. Take pride in your work. Whining about wanting to work from home or culture at the office is a fast ticket to unemployment in a tight market. Managers don't want to deal with problems and there's plenty of people wanting jobs who aren't
Lastly, remember, if your name isn't on the building, you are a disposable commodity. Nobody protects your ass but you.