A flag expert is a vexillologist.

(Vexillology is the study of flag history and symbolism. The name comes from the Latin word vexillum, which means flag. The word was coined by Dr. Whitney Smith of the Flag Research Center.)