Apparently I keep forgetting how to do this:

Rename flags In the Mail app on your Mac, click the arrow next to the Flagged mailbox in the Mail sidebar. … Click the flag name, click it again, then type a new name…

Source: Flag emails in Mail on Mac - Apple Support