The tweet is misrepresenting what Section 377 is. It is a law against all sex that was “against the order of nature”, and was used to persecute queer people. The anti-gay sex part was ruled unconstitutional in 2018.
I also can’t find any news sources saying the Modi government is even considering completely getting rid of the law, as Indian conservatives are generally in support of it. What is the source for this?