I worked for Univac Computer Division of Sperry Rand in the late 1960's. That's 50 years ago. Back then people were also worried about all the jobs computers would replace. So, nothing new. The fact is as long as the economy is humming, there will be jobs. Of course, there will be displacement, and re-training may be required, but computers, high tech, software, AI, etc. will just create new opportunities for different kinds of work.
As long as we have free markets where the government gets out of the way, the jobs will be there. I was just reading a story about New York City. The financial district downtown lost 14 million square feet of office space in 2001 because of the 911 terrorist attacks. Since then, that area has built 34 million square feet of new office space, over two times that lost. This doesn't include the midtown area which has also built new office buildings. NYC grew from 7 million people in the 1970's during the last economic crisis there, to 8 1/2 million today. Who knows how many more illegals there are? There are 1 1/2 million office workers, more than ever before. (Remember all the secretaries there use to be and now we've become our own secretaries with our laptops. So the office workers are doing different things.) Computers have made us more productive as well. OK, NYC isn't the rust belt. And there will be displacement. But as we advance technologically, people learn the new ways. After all, what were the steel workers doing before steel?