The switch has 2 hot wires red and pink, need help where to connect the cables.
Home Improvement Stack Exchange is a question and answer site for contractors and serious DIYers. It only takes a minute to sign up.Sign up to join this community
Yellow is a "hot" color, as is red and orange. This switch does not have neutral.
Your original switch was a 50 cent cheapie. It had both screw terminals and backstabs. In your photo, the orange backstab is internally connected to the yellow screw. So the installer is using the dual connections to splice together yellow and orange, as well as connect them to that leg of the switch.
Assuming your "status quo ante" picture is accurate, and you only have one light, I gather yellow and orange are both "always-hot" or "Line". One coming from supply and the other going onward to other outlets or switches. They need to both be connected to the same terminal, as they are now.
That means Red is "switched-hot" or "Load" and will be alone on a screw.
If you read your device's instructions (as required by NEC 110.3), it will discuss how to attach 2 wires to one screw on this particular device.
If you managed to confuse the wires, and yellow-orange aren't meant to go together..... normally blind experimentation can create very dangerous "seems to work but kills you" combinations. But in this case, with switches, there's no real risk. You can try all 3 combinations until you find the winner.
I gather the box is metal, and the switch will pick up safety ground via the mounting screws. Switches are able to do that (As are $3-tier "spec grade" receptacles).