Have you claimed the American Opportunity Credit in four previous tax years? If you have, you wouldn't be eligible to claim the credit in 2022.
However, you may be eligible for the Lifetime Learning Credit.
If you're using TurboTax Desktop, check the entry for Line 8 on the Student Information Worksheet. If it's less than 4, Form 8863, Line 23 will say No.
@phennes