Unity2D side collision detection

I have a character and a box, i’m trying to understand which side of the character had collided with which side of the box, I made some research and saw some usage of transform.InverseTransformPoint but it wasnt working with the ContactPoint2D. I thought i can add 4 different box colliders to each side and act like that but i wonder if there is another solution

If you are using OnCollisionEnter, then you can check the ContactPoint to see where it hit.