This question gets asked regularly on HN. I've asked it before. I never got a good answer.
The truth is, there's no other place for us. Software was the last "good job" after enshittification made every other industry a race to produce the worst product that consumers will still consume. So no "re-training" will help here. Every other job sucks as much if not more.
It almost seems like becoming a philosopher, influencer, politician, or warlord is a better long-term strategy.