That is true of melee attacks as well. Clearly strength has a component of accuracy to it. Best not to bring "Real world" realities of actual fighting.
The dex entry reads:
"Ranged attack rolls, including those for attacks made with bows, crossbows, throwing axes, and other ranged weapons." (emphasis mine)
Swords are not in that list.
Not sure why you think that helps your argument. Also, no need to be rude.
GW