No, he quite clearly was trying to keep the association between the psychiatry real identity and Scott Alexander. There would be no fucking discussion here if Scott intentionally meant to reveal his identity.
>Is there some unwritten rule on the internet that you are anonymous as long as it's kinda a little bit difficult to figure it out?
Yes, there is a reason it’s gotten its own term. And this is why many sites (like Reddit) have very explicit anti-doxxing rules.