I love Rangers so I am biased. I think the BG3 Ranger is quite powerful going ranged. I am not a huge fan of melee Rangers, just on the basis of your damage is going to be worse than every other martial class while at the same time being the least tanky, but there are still the non combat advantages the class has over a lot of others. They get a lot skill check options with Ranger and Wisdom and they can easily handle lockpicking/disarming detail.