If you have deferred capital gains losses due to wash sale rule can you ever claim it as a loss on tax returns? how long do you have to wait?

Had sold some puts that got exercised but dont want to keep the stock, so sold within 30 days and incurred deferred loss.