That's a hint at the problem. We spend a lot of taxpayer money to train some of the best researchers and scientists in the world, only for them to work for US or Chinese companies boosting their economy instead, because they pay more than the European companies.
Just look at Nvidia, Huawei and Apple, they have an R&D centers next to every top university in Europe or next to every ARM/Nokia/Ericsson office.
The problem isn't the money spent on training/education, it's the lack of top economic opportunities/companies we have in a lot of parts of Europe resulting in our tax money boosting the economies of our economic adversaries, who are less risk averse and more hungry about innovation and monetization.