The Swarmkeeper ranger from Tasha's Cauldron of Everything (p. 60) has the Gathered Swarm feature, which provides the following benefit:
Once on each of your turns, you can cause the swarm to assist you in one of the following ways, immediately after you hit a creature with an attack:
- [...]
- You are moved by the swarm 5 feet horizontally in a direction of your choice.
If you use this feature to leave the reach of a creature, does this movement provoke an opportunity attack?