To separate a ship from your wing can use AI_RemoveFromWing command.
In the other hand you have setup the AI_SetAutopilotData(x, y, z), and the ship
will go with the player, AI_SetAutopilotData(x, y, z) is not necessary to wingmans with
AI_AddToWing function because thhose ships will follow...