The Goblin Boss's Redirect Attack (MM 166) uses a reaction to switch places with another goblin.
Redirect Attack. When a creature the goblin can see targets it with an attack, the goblin chooses another goblin within 5 feet of it. The two goblins swap places, and the chosen goblin becomes the target instead.
If the Goblin Boss is within reach of a hostile enemy, does Redirect Attack to a Goblin outside of the enemy's reach provoke an opportunity attack?
The Goblin Boss also has Nimble Escape ("The goblin can take the Disengage or Hide action as a bonus action on each of its turns"). If it uses Nimble Escape to disengage on its turn every turn, will using Redirect Attack avoid OAs? Or does Nimble Escape end at the end of the Boss's turn, thus not affecting Redirect Attacks taken as reactions?
For reference, the section on opportunity attacks from the basic rules:
Opportunity Attacks
In a fight, everyone is constantly watching for a chance to strike an enemy who is fleeing or passing by. Such a strike is called an opportunity attack. You can make an opportunity attack when a hostile creature that you can see moves out of your reach. To make the opportunity attack, you use your reaction to make one melee attack against the provoking creature. The attack occurs right before the creature leaves your reach.
You can avoid provoking an opportunity attack by taking the Disengage action. You also don’t provoke an opportunity attack when you Teleport or when someone or something moves you without using your Movement, action, or reaction. For example, you don’t provoke an opportunity attack if an explosion hurls you out of a foe’s reach or if gravity causes you to fall past an enemy.