Where could i have played better?


22. g3 it probably preparing f4 yes?
22. Be3 might have been better.
Black's dark squared bishop is currently on a very good diagonal.
When black gets his bishop to d4 it's on a very active square. Be3 stops that without black first supporting the move.
The issues you have are your hanging pawn on the half open c-file and the open a-file which black can, and does, use to get his rook round. Perhaps working your rook to c2 and your king upto g2

I think 8. Bb5 is where you pretty much lost the game, it wasn't a smart move from the beginning, as there was not much to be accomplished there. It led to your bishop being taken with no answer, and allowed the black queen to dominate queenside of the board and wreak havoc.
If anything, after 8... a6, you should have just 9. BxC6+, you could have minized damage by forcing a bishop/knight trade. And after 9....bxc6, you could have gone 10. Nxc6, threatening black's queen and come out a pawn ahead even.
Seemed like you were way too eager in the late and middle stages to force trades as well, and gave up position too much. Black capitalized