Yeah, that’s not true.
The advice being given here is to not share post-divorce financial information. Obviously, an ex-spouse probably knows or can easily find in old records the other person’s SSN.
Edited to add: Thumper beat me to it. I was interrupted by a trick-or-treater as I was writing the post.