Quebec (Canada) has a system like that, it's called free higher education, and you pay with a fraction of your salary called "income tax" (it's actually 2k$ per session, not completely free)
But some of that income tax gets lost in the education system. It would be much efficient to just pay back to the school you went to. Then there’s no chance of it getting spent at levels above the school.