How can a rogue remote sneak attack?

A player of mine started playing a rogue in Pathfinder 2e, I was already playing a rogue in DnD 5e. He feels a bit frustrated because it was impossible to take advantage of the flanking rule to sneak the attack.

My question is how can the rogue sneak into a ranged weapon?

I know you can use the hide and then attack action, but what are the other opportunities?