Hi freewriter, and welcome to English Forums. Word's grammar checker is pretty basic. It "sees" the "for" and assumes that what comes next should be the object of the preposition.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.