Big Sur Mail app lost flagged email

Mail.app on Big Sur mostly does what I would expect it to do, except show me my flagged messages. That favorite item always shows empty, while the iOS counterpart shows the correct nr, and so does my lone mac still on Catalina.

Anyone know how to fix this?

A reader in this Apple Communities thread suggested rebuilding mailbox(es) as a fix that worked for them.