Unless you give away your knight or bishop I don't think so
Is there a tactic to capturing g5 pawn in this position?

I don't quite see the sacrifice working in this exact position. The general idea is always to see whether White might have either a) 1. Nxg5, hg; 2. Bxg5 then either some way of intensifying the pin on the Nf6 to win it or combining to give checkmate; or b) 1. Bxg5, hg; 2. Nxg5 and some way of getting checkmate. It tends to be more promising if White has a Knight on c3. In this position, I don't see a win after 1. Nxg5, hg; 2. Bxg5, Be7. But Black has the harder job in such positions. For example, after 3. Qf3 it looks like Black has to find 3...,Kg7 because after the obvious simple try to swap down 3..., Nh7 White has 4. Bh6 and if 4..., Re8 hanging onto the material (4..., Bf6 looks better) 5. Qxf7+ is followed by 6. Bg7# Here, taking on g5 looks like a speculative try. Sometimes it's deadly. I'm sorry but I don't know if this tactical theme/idea has a name.
it actually has high potential to backfire horribly HotSchedule

Don't quote me on this but i think a large part as to whether or not you should do the sacrifice is if he can get his bishop back to e7 or not. If he can i would advise against it—if not then it should be good.

It's a common idea of sacrificing a knight for two pawns to keep pressure on the knight in these types of position. But you have to keep up pressure, otherwise, if your opponent will survive your attack, you will end up being two pawns up for a knight. Usual defense for black is Kg7 to defend the knight twice, and then Rh8 (I don't know actually why this move is important, but Stockfish said me often, that this move is important). I often was in this type of position as black, and often my opponents weren't doing what they were supposed to do.
I remember hearing about a tactic in this position to capture the g5 pawn. I would like to learn about this and was hoping this tactic had a name that could be searched up.