vexillologist

noun

One who studies flags.