The broken pilot training pipeline is mainly a US problem. Airlines got spoiled because the military trained thousands of pilots every year for "free", then some would go on to get civilian flying jobs. Now the military is smaller and there aren't enough experienced pilots coming out. But there's nothing preventing airlines from hiring pilot candidates with zero experience and paying them to go through flight training. Some other countries do this and it works fine.
For pipeline capacity, it's not even really broken in the US. The airline problem is that they have to whipsaw between "growth is stalling, time to furlough our junior pilots" and "growth is now, time to hire all junior pilots with ATP minimums". But there's enough pilots being trained to handle the average.