Earlier quoted context omitted.
Here is a better solution: the countries foreign workers are coming from should do a better job of retaining them. When countries lose their talent, they are brain-drained and this stunts the growth of their own tech-sectors. Ideally, foreign workers won't want to leave their own countries because they should have high-wages and good opportunities at home.
So, to solve working immigration issue one country should somehow force foreign countries to retain outside immigration by proposing better job to workers? How one country can do it?
It is not one countries responsibility, it is every countries responsibility to retain their own talent and grow their own tech-sector.