Well this is already illegal in several countries around the world anyway.
Doxing is illegal in Russia, it's illegal in Australia, it's illegal in China (Hong Kong included), it's illegal in South Korea, it's illegal in various Western European nations (this isn't because of EU mandates and it's because some EU member states have took it upon themselves to criminalize doxing within their own jurisdictions), while not completely outlawed in Japan but due to their very staunch privacy laws makes it very difficult to legally dox someone in Japan, and doxing is illegal in various U.S. States (both red states and blue states alike) as of this year.
Privacy by design laws isn't just a European thing anymore and due to people these days being concerned about their data on the Internet which has lead to an increase for a big push for laws that establish standards on how data is managed on the Internet. So one day there will be a point where America may fully outlaw doxing regardless of Section 230 protections anyway.