The problem is, your answer sounds a lot like telling laid off coal miners to "Learn to code, Bruh!" meme.
....
Most middle tier jobs are going to be gone.
I think it's more like this. I'm old enough to remember when drafting was done with pencil, paper, rulers, etc. My Dad was one. I had a drafting class like that in high school. Well within his and my lifetime, all those draftsmen went from using pencil and paper to using computers, my Dad included. They didn't "learn to code". They didn't write any code. Coders wrote the code so that those pencil draftsmen (as their client base) could use the software and do 10x the drafting they could do before. And designs that before were too complicated to be feasible became feasible. So things went from being simpler, to being more complicated, efficient, and more functional. In addition, there were companies devoted to making drafting software, salesmen selling drafting systems, instructors teaching the drafting systems, etc.
Another example. When the power loom came along, it put a bunch of hand-loom workers out of work. But it created an enormous number of jobs in the textile industry overall. Including jobs that were LESS skilled than hand loom, such as machine operators in textile factories. Because of the enormous decrease in fabric cost, there as an enormous increase in use of fabric, large increases in associated industries. There were large increases in people needed for overseeing, machine maintenance, transport, material handling, warehousing, sales, and a huge number more jobs in the garment industry (making garments, sewing, sales, stores, sales, etc.).
I don't think LLM's are different than power looms, cad systems, trucks, trains, airplanes, steam engines, powered ships, factories, mining equipment, cement mixers, road graders, machines that make 1000 candy bars an hour, etc.
Basically, there is an invention. It temporarily puts some people out of work, but creates a large number of more jobs in total. And -- after some time -- the entire world is way better off, because food, clothes, transportation, home heating, indoor plumbing, carpeting, windows, paper, bricks, lawn mowing, etc. are all waaaay cheaper than they were in the past.
To deal with disruptions, societies can have welfare while workforce adapts.
But new tech doesn't just put people out of work. It creates new jobs as well. And not all of them are just high level.
Consider even LLM's and software. I use LLM's enormously on a coding project I'm working on. My productivity is 10x what it would be without the LLM. Because I don't need to have read and memorized a 10 ft thick pile of tech manuals on various libraries, api calls, Bluetooth stack specs, etc. I can ask an LLM which api call that does such and such and give an example. Then I can take that, mod it for my purposes. It's not always right, so I have to be able to check it and make it work for me. But it saves me huge work.
It LOWERED the bar and created a job that might not have existed otherwise. If that product works well enough, it will create some other jobs in manufacturing, sales, marketing, distribution, advertising, fulfillment, shipping, etc.