Hi,
It is too late to amend your tax returns for 2021 to 2022 and earlier, so for those tax years you will need to write to: HMRC at:
H.M.Revenue and Customs Self Assessment
BX9 1AS,
to confirm that you are not UK resident for those years, but you are entitled to claim personal allowances (you will need to look at the guidance notes for supplementary page SA109, boxes 15 and 16 at:
Residence, remittance basis etc (Self Assessment SA109)
for the reasons that you continue to qualify for personal allowancs.
For tax years 2020 to 2023 onwards, you can download the relevant SA109 page and submit it to the address above. Going forward, you will either have to submit a SA return in its entirety on paper or by buying a commercial tax return that allows you to submit online.
You should note paper tax returns must be submitted by 31 October each year, to avoid late filing penalties and interest charges.
Thank you.