Terry53029
Level 14
Level 14

from pub 925: 

Unlawful Discrimination Claims
You may be able to deduct, as an adjustment to income
on your Schedule 1 (Form 1040 or 1040-SR), or Form
1040-NR, attorney fees and court costs for actions settled
or decided after October 22, 2004, involving a claim of unlawful discrimination, a claim against the U.S. Government, or a claim made under section 1862(b)(3)(A) of the
Social Security Act. However, the amount you can deduct
on your Schedule 1 (Form 1040 or 1040-SR), or Form
1040-NR, is limited to the amount of the judgment or settlement you are including in income for the tax year. See
Pub. 525 for more information.

Also a link to a guide from IRS: https://www.irs.gov/pub/irs-utl/lawsuitesawardssettlements.pdf