Deductions & credits

if you bought the security and it is now totally worthless in 2023, you get a write-off as a capital loss