Hi PF,
You will need to review the statutory residence tests to determine whether you will be considered tax resident for the whole tax year or not tax resident for the whole tax year.
If you are deemed tax resident, you will need to check whether split year treatment applies.
If it does, you will need to claim this on SA109 as part of your 2022 to 2023 tax return.
RDR3 Statutory Residence Test
Thank you.