Writing off a loss

I have an investment loss from 2021 for around $2,500 that I never used.  I wanted to claim it on this year's 2023 tax return.  A few questions.  If I only have $1,000 in  realized gains for 2023 from investments can I still claim my entire $2,500 as a way to reduce my tax responsibility from my w-2 earnings?  

 

If this is okay, which form would I need to use to report this investment lost?  Thank you