Deductions & credits

As you posted, the $5000. you put in was pretax so you already received a tax benefit. You can’t use the same $5000 again as an expense.