From the "Opportunity Attacks" section of the Combat chapter:"You also don't provoke an opportunity attack ... when someone or something moves you without using your movement, action, or reaction."
When a mount moves you away from an enemy, it uses its own movement (and no action), not yours...