Hi Rustie54,
There are two way in which capital gains losses can be declared to HMRC.
By submitting / amending an indate tax return or in writing to
H.M. Revenue and Customs Self Assessment
BX9 1AS.
You can claim losses for up to 4 previous tax years.
Have a look at
HS227 Losses (2023)
Thank you.