There is no such thing as a labor shortage, there are only wage shortages.
Some are some caveats. There are some types of labor that only a select few can actually do. There is a limit to available talent at any price.
Also, wages are short term whereas some careers such as commercial pilot have a narrow path with knowledge and skills that don't transfer to other industries. It's not just a wage shortage, it's also career risks or the lack of a viable career progression. The current pay may be okay but the future might be in serious doubt.
Once the airlines mandated the Jim Jones Jab, forcing pilots to choose between risking their health or losing their income with no options to transfer into other careers with those skills, many potential pilots have no desire to start down a very narrow career path where an employer could again force them into the same decision. That's not a wage shortage, that's a shortage of suckers.