W-2, Court Settlement and IRA

I retired from Company XYZ in 2018, I was a member of a class action lawsuit which was just settled at the end of 2023.  I received a W-2 for 2023 and I understand that this is taxable income to me.  Are there any limitations to placing some of that money into an IRA, up to allowable limit of 7,500 since I'm 50+ ?  I'm a bit confused because I am retired yet I received a W-2, so I'm confused as wether or not that has any impact.  Thanks!