How to get flying enemy AI (2D) to not go to players feet

Hey,

Ideally it should hold the Z cordinate I have tried to split the vector and the AI only moves on the Y axis.