Yes, I'm in one of the countries you mentioned. I also see that pattern among older friends which graduated and are now working for 3-5 years. About 30-40% of the people I knew either exited the country immediately after graduating or 2-3 years after. Some even moved via mobility programs like Erasmus and never came back. The rest remain in the cycle you mentioned and that is my fear.
If you are in an EU state why not move somewhere with a better job market like Germany, UK, the Netherlands or the nordic countries (you don't need to be able to speak anything but English to get work as a programmer in any of these)?