Gotcha. I agree, that does sound pretty unfair.

But note that sneak attack requires an enemy of the target to be within 5 feet (1.5 meters) of them regardless of their reach. At least by the rules.