Welcome
Physics components can be default (e.g. "collider"), or 2D (e.g. "collider2d"). You're currently mixing them. If you use 2D, then you also need to use the 2D actions, or when you use the default version, likewise the matching actions. This is true for all physics components and actions -- including overlap spheres, triggers, raycasts etc.