Once you resign and the RP is cancelled there is a 2 yrs ban period.

However if you manage to get a NOC from your actual employer you might be able to come back immediately. (under a different company/sponsor/contract)

Regards!!