One approach could be to add an instance variable to your sprites called something like “shouldFollowPlayer”. You can then set this to true for the sprite that should follow the player, and false for the one that shouldn’t.
During your collision checks, you can use this variable to determine which sprite should follow the player.
To handle positioning, you could either use the Pin behavior or manually update the sprite’s position on every tick to match the player’s, optionally with an offset to position it just right.