The rogue can also get sneak attack if an ally is within 5 feet of the enemy
Interesting didn't know this one.
More accurately, if another enemy of the target (not necessarily one of your allies) is within 5 feet of it and that enemy
is wielding a melee weapon. A creature that's wielding a bow or crossbow won't count.
You can confirm that the condition is met if the enemy has the Threatened status.
I also saw people on reddit claiming (with screenshots) that the Sneak Attack mechanic is sometimes buggy in the new patch, but I myself haven't run into problems yet.