Every time new technology has disrupted jobs it has resulted in more, not fewer jobs in the long term once the disruption has settled.
In all previous cases new technology was only better than humans in relatively small areas. There were lots of other domains where the new technology simply didn't work, so it couldn't compete with humans.
However, humans have hard built-in limits. They're biological creatures, slow to change, prone to all kinds of issues, needing long years of growth and education in order to become productive in the modern economy. Machines don't have those limits; every time some new technology gave machines a foothold in a new domain, they ended up eliminating or strongly reducing the presence of humans in that domain.
For example, humans aren't the main providers of brute physical work anymore, and haven't been for quite some time - a steam train can carry the same amount of merchandise as thousands of porters, a mechanical shovel does the work of hundreds of ditch diggers, and so on. But those primitive machines couldn't do manual work, especially requiring fine coordination. Only humans could do this, and burgeoning industry became the source of jobs for the people displaced. However, with the development of technology, we see how industrial and manual workers have themselves been replaced by machines in agriculture, light industry, auto industry, mining and so on.
AI is now assaulting the last areas where humans were still irreplaceable: intellectual and creative work.Until recently those domains remained the appanage of humans, and were the sources of new jobs, in services, computers, economy and so on. Those "human only" domains are however getting fewer and fewer, and the barrier of entry goes higher all the time - for example, lots of high paying jobs now require decrees. As humans reach their biological limits, machines will get better than humans in the intellectual domain as well. Once this happens, there will be nothing left for humans to do - and I believe it would be smart to start preparing for this situation now.
It's easy to ignore the issue and postulate new jobs will show up - many people do this. I don't see however any of those optimists provide examples of abundant and well paid jobs that can be done by an average human but can't be done more cheaply by a machine.