In terms of allowable reasons to take out of 529, they may be, but I don’t think a 1098 deals with 529 issues - only scholarships and tuition billed/paid. I could be wrong. I thought you were talking about scholarships and education tax credits. Sorry, missed that link referred to 529s.
Note that 1098 is for information purposes and may not match up exactly for how you put numbers in tax return.