Hi johndoe123,
You will need to check whether there is a tax treaty between the UK and the country you are now resident in:
Tax treaties.
There is likely to be an article relating to capital gains.
You may find that the disposal of the shares will result in a gain arising in the country you are resident in and not the UK.
Thank you.