AI that walks parallel to character?

I’m in urgent and quick need of help deadline soon on Uni work and need this to finish of the level.

I’m wondering if its possible for an AI to walk with the character player forward and back normal but then when the player goes left the AI goes right and vise versa.