I can’t help but feel a little schadenfreude. STEM folks may soon find themselves masters of skills as esoteric as translating Ancient Greek poetry or analyzing 18th century novels. The ability to construct complex mathematical proofs will become a party trick, rather like the ability to mentally multiply 10 digit numbers. The arguments that STEM snobs dismissed in favor of the study of the humanities will be the very same arguments that they now turn to. We will hear about how math and science make you a better rounded person, have inherent as well as instrumental value, etc. etc.
On the other hand, STEM will disappear last because, as long as machines won't be able to do something, the study of how to make them do it will be a part of STEM.
You don't think LLMs can translate Ancient Greek poetry or analyze 18th century novels?
Of course they can. My point is that mathematicians may increasingly find themselves in the same position as academics in the humanities. Mathematicians themselves will be able to see the inherent value of the work they're doing (just as experts on 18th century novels can in their own field), but it will be far less obvious to society at large why their work should be funded.