I received a 1099-NEC including reimbursed expenses

I received a 1099-MISC for reimbursed expenses

I received a 1099-NEC which includes both my contract fee, and  an amount for products I purchased for their use.  This is a pass-thru expense, not for my use, I did get reimbursed but how do I write off the original cost of the products so I don't pay tax on the reimbursement as if it's legitimate 1099 income?  This makes it look like I was being paid more money per year than I actually was, and I am also out of pocket for the cost of the products I purchased.  Were they correct to include the reimbursement as 1099 income? and if they were, how can I write of the cost of the purchase so I get a 100% tax credit?