How do I flip an enemy that's automatically walking and targeting the player?

My player is able to jump over the enemies. They are able to target the enemy, but when he jumps over them. the enemies do not face the player when they are running after it again.
The way I have it causes this glitch
Youtube-Game Glitch Video

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Opossum : MonoBehaviour
    public float movespeed;
    private Rigidbody2D posbody;
    private Transform TPlayer;

    private bool facingleft = true; //faceplacment

    void Awake()
        posbody = GetComponent<Rigidbody2D>();
    // Start is called before the first frame update
    void Start()
        TPlayer = GameObject.FindGameObjectWithTag("Player").GetComponent<Transform>();

    // Update is called once per frame
    void Update()
        transform.position = Vector2.MoveTowards(transform.position, TPlayer.position, movespeed * Time.deltaTime);

    void Flip()
        if (facingleft = !facingleft)
            Vector3 oposcale = transform.localScale;
            oposcale.x *= -1;
            transform.localScale = oposcale;


I don’t think you need that facingLeft variable at all. You can just test like so:

if(enemy.transform.position.x >= player.transform.position.x){
//face left
//face right