Hi thanks for your question.
Your 6 months pregnant and you are having pinkish lump around your anal opening,
Most probably this lump could be pile mass, which usually get enlarge during pregnancy
can aggravate them.
The other possibility could be an anal tag and finally it can be a peri anal abscess
Get yourself examined by your gynecologist, to know what exactly it is.
Hope this answers your question.