Musk is not the problem per se. He is a symptom. Public education along with public most everything sucks pretty hard compared to 50 years ago, because we stopped taxing the rich and corporations like we did during the golden age of US expansion from the 30s to the 70s.
The US becoming a tax haven allows individuals like Musk to amass fortunes that if more equitably divided among the workers who helped him build that fortune would enrich the country.
If US taxes were more equitable (as in many EU countries) then schools would be well funded, infrastructure would be maintained, and the entire country (and companies) would be richter, not just a few like Musk, Bezos, Gates, Brin, Jobs, etc.