Finish object doesn't trigger

My finish line isn’t triggering with player.

Its collider has the trigger on but doesn’t react.

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

public class Finish : MonoBehaviour
{
    public Animator anim;
    public string sceneName;

    private void OnTriggerEnter2d(Collider2D collision)
    {
        if(collision.tag == "Player")
        {
            GetComponent<Collider2D>().enabled = false;
            anim.SetTrigger("Reached");
            Destroy(gameObject, 1f);
            SceneManager.LoadScene(sceneName);
        }
    }
}

First of all, I think the function OnTriggerEnter2d is written incorrectly and it should be: OnTriggerEnter2D.

If that’s not the problem, maybe it is that when you use OnTriggerEnter2D one of your objects (the finish line or the player) has to have a Rigidbody2D component. Hope this helps