YANBU - it is your business and your business only. Yes, the man with SF needed to stay away from you but he should have been advised that he was only party to such info because of the circumstances and to exercise discretion.
I had an awful time when I first got pg. A few weeks before we had had a worknight out and my then supervisor got very drunk and ended up kissing someone she shouldn't have in full view of everyone. However she forgot everyone had seen and got it in her head that it was myself and my other colleague who had told everyone, even though they had seen it with their own eyes. Fast forward a few weeks and I find out I am pg. I told one person at work and asked her to keep it to herself. However she ended up telling this supervisor. I worked in a call centre and asked the supervisor one day if she could handle a complaint caller who was asking for the call to be escalated to someone more senior and she was completely vile. I recall the conversation on her part being in a very loud voice
"Oh, I suppose you want me to take the call NOW. Just because you are PREGNANT, is that what it is. You think your PREGNANCY gives you the right to pass this call over to me. Well I am not taking it. Now GO AWAY"
I calmly stated it was non of her business and she had no right to announce it to the office like that because I hadn't even had my first scan and if it wasn't ok then I would have to then explain to everyone in the office god forbid I couldn't carry on with the pregnancy. She then retorted
"I can say what I want. YOU told everyone when I kissed X so I have the RIGHT to tell everyone this"
This then resulted in me sobbing my heart out in the toilets. Another colleague who witnessed it went straight to the management to explain exactly how nasty and unprofessional this supervisor had been and after they managed to coax me out of the toilets they gave her the biggest rollicking of her life and said if she ever behaved like that again she would be demoted.
Thankfully DS is 8 on Monday so all is well but she made me super stressed and she had no right to do this.
I know your circumstances are slightly different Ramdhan but I am still cross for you, especially as some of your family don't know. The damage is done now but what I would do is speak to the close friend and explain what you have told us on here. If he is a good friend he will appreciate where you are coming from and will keep schtum. Forget about revenge, it was done with good but misguided intention. And it shows what sad little lives they all have if all they can find to talk about is a colleague getting pregnant. Try to relax now and enjoy yyour pregnancy. Don't allow it to be tainted by this