As someone would have loved to become a pilot, but went into another industry because I wanted to be able to feed my family, the airlines have no one to blame but themselves. The pay for regional pilots is insultingly low.
I don't think pilots qualify for H-1B but perhaps the US gov't could come up with a scheme to allow experienced foreign pilots to come to the US and get trained and certified at the airlines' expense.