OnTriggerEnter2D other.gameobject.tag not working

so I have a code

void OnTriggerEnter2D(Collider2D other)
{

    Debug.Log("Happens");
    testbool = true;
    if (other.gameObject.tag == "EnemyCanHitMe")
    {
        LeftHitterBool = true;
    }
    else
    {
        LeftHitterBool = false;
    }
}

It should make the LeftHitterBool true when the player enters the box collider 2D of an object with the tag EnemyCanHitMe but the bool isn’t becoming true when the player enters the collider. Anyone know a solution to this? I’ve checked multiple times and the correct tag has definitely been assigned to the box colllider.
EDIT: The OnTriggerEnter2D part itself is working, but it’s the if statement that doesn’t seem to function

First, try gameObject.CompareTag(“EnemyCanHitMe”),
Make sure that the collider is set to trigger \o/

Did you put BoxCollider2D to the object tagged “EnemyCanHitMe”? If you used a BoxCollider (3d one) the OnTriggerEnter2D wont do its job due to the dimension problems