Hi,
Losses on listed shares are declared in the 'listed shares and securities' section of the capital gains supplementary page SA108. You should enter 'NVC' in box 29 and select the same from the drop down option in the online return.
Losses can be carried forward and set against future gains.
HS227 Losses (2023)
Thank you.