There is no way to get revenge at that position. If these type of traps often occur in your games, I suggest you don't play your "f" pawn.
WHY?
Because f pawn blocks the h5-e8 diagonal which is the baseline of such traps. For example let's try this without moving our f pawn:
I know a bad opening... I thought of doing something new and ended up in this position. How can I capture the queen to get revenge for my rook. How to avoid such openings traps in future. Any suggestions.