Retirement tax questions

Has a tax expert weighed in on this question yet -- For a retiree with no other 'earned' income, does the gain from an NQSO same-day sale exercise meet IRS requirements for ‘earned income’ to enable a deductible contribution to a traditional IRA?

• During the entire tax year, I was a retiree receiving a pension, but otherwise “not covered by an employer retirement plan".

• During the tax year, I exercised an NQSO via a same-day sale. The gain was subject to withholding for federal income tax, Social Security tax, and Medicare tax. I received a W-2 from my previous employer that showed the gain in Box 1. Box 11 was blank. Box 12 showed the same amount as box 1 with the code V.