Before trying the transitional constraint, you must fix one of the components to 'ground'. As it is, the whole assembly is free to move in any direction, making constraint calculations unnecessarily difficult, if not impossible. The shaft seems like a logical part to be fixed. You can start over, placing the shaft first and, while placing, right click and choose "Place Grounded at Origin".

Then you'll need a couple of Insert constraints for the mounting bracket, an axial mate and a face mate for the pin, and an axial mate for the slider to the shaft.
Now that it's all locked down, use a Transitional constraint, picking first the pin face and then an adjacent slot face. This works pretty well, except for the transition to the short vertical section-- on my system it won't go around that corner, probably due to imperfectly perpendicular faces, or maybe not a big enough radius. I didn't spend the time to figure that out.
As @swalton pointed out, you might want to consider creating a surface in the slider part that is slightly offset from the slot faces and which you will use for the transitional constraint (and then turn off the visibility). That will keep the pin in the center of the slot instead of staying attached to the perimeter.
Then a constraint to drive the slider back and forth, or else just a mate constraint with limits so it doesn't jump off the pin when you drag it too vigorously.
Sam B
Inventor Pro 2026.1.1 | Windows 11 Home 24H2
