One thought exercise here - the recent slump in tech is not super different than the manufacturing tech slump that started in the 80s and 90s, and driven in large part by a hyper focus in efficient operations and expansion of financial margins.
Let's be honest guys, large tech have grown to the point where bureaucracy is abundant. Lots of reviews, green light, and way too many components in a tech stack. Once a product is out in the wild and builds enough of a user base, the developers and most of the supporting functions behind it are somewhat disposable, because they're busy doing busy work instead of innovating. Management advances by pitching more ritual and process and measures its own success by highlighting the expansion of revenue margins and more efficient operations measured in things like bug count, downtime, etc. - measures that are directly juxtaposed to innovation.
Market power is held in large part by regulation. Try starting a new social media platform today, and enjoy the myriad of legalities and roadblocks that your app will face. Try to publish a game and see if it'll get approved by the 2-3 dominant platforms.
Will employment in tech return? Answer is: yes, and it will be driven in large part by growth of new ways of applying AI in traditional spaces - we are *just* scratching the surface in health, manufacturing, integration with robotics, scientific discovery, you name it - but software development will continue to require a structured way of thinking, regardless of whether we end up coding long term or not.