Deductions & credits

You do not pay taxes on net losses from the sales of securities.

 

What might have happened is your accountant did not adequately explain the wash sale rules to you.

 

See https://www.irs.gov/publications/p550#en_US_2020_publink100010601