“ So the UK and presumably the US should just pay their ex-military pilots whatever they want to keep them from training enemy forces?”
The US Government does this all the time.
If you don’t want ex-military pilots training other pilots, make them a more lucrative offer.