Earlier quoted context omitted.
Actually not most countries strictly limit /regulate this sort behaviour and if your made redundant I suspect that the employer would not be able to recover anything. Unfortunately employment practices in that part of the world are Horrific - its just normally poor navvies employed on building sites get the worst of it - see some of the coverage of the word cup construction in Quatar
It's not illegal in the UK either I'm afraid. In fact, it's standard. Im not saying this is nice or positive. Just that it's totally legal and pretty standard. I know because my first proper employer did NOT put this clause in my contract. Then they tried to introduce it for me and others after adding it for new employees. So I (we, there were 5 of us) actually sought legal advice. The lawyer was surprised it wasn't…
Like most people I simply ignored the request!
Most of the training I was getting was hyper specific to particular financial/ERP applications that if I left I'd be running away from ever seeing those applications again....