Defining collider for use of "Collider2D.OverlapPoint"

I am trying check whether or not my mouse is over the 2D collider of and object I instantiated into the scene. I am trying to use “Collider2D.OverlapPoint” but the website unity provides doesn’t go into detail on actually using it in a script and just shows the “point” parameters. I am pretty sure I need to define which collider I am referring to but I am unsure of how to do so. Please help

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

public class CardScript : MonoBehaviour
{
    public GameObject manager;

    public void Start()
    {

        manager = GameObject.FindGameObjectWithTag("GameController");

    }

    
    void Update()
    {
        Vector3 mousePos = Input.mousePosition;

        if (Collider2D.OverlapPoint(new Vector2(mousePos.x, mousePos.y)) == true && Input.GetMouseButtonDown(0))
        {
            Debug.Log("cha-ching!");
        }
    }
}

It isn’t a static method, so you should not be trying to use it as one. It’s an instance method to be called from an instance of the collider you are checking overlaps the point.

[SerializeField] private Collider2D _collider;

void Update() {
    Vector3 mousePos = Input.mousePosition;
    if (_collider.OverlapPoint(new Vector2(mousePos.x, mousePos.y)) && Input.GetMouseButtonDown(0))
    {
        ...
    }
}