You don’t have to attack from stealth to sneak attack. You can just run up and knife someone who is standing next to another one of your party, or shoot them in the back with a bow. I think they need the “threatened” condition. It might be slightly buggy as it doesn’t seem to be 100% reliable, but usually is in my experience.