Question: do attacks of opportunity get advantage?
Answer: Since you only provoke an Opportunity Attack when you leave an enemy's reach, those enemies wouldn't be flanking you anymore when you provoked their attack. ... The enemies are not flanking the Hero in that position, so they do not get advantage on an Opportunity Attack.