new to the game
I see you have done some lessons. That is good.
Your most recent game shows some good things. By move 10, you were much more developed than your opponent. I wouldn't have castled queenside, since he already had a pawn storm going that way. With 11..Bd6, you would have been ready to castle kingside and also to protect your pawn on e5 if your opponent forced your knight away with a pawn push to b5.
The only move which really concerned me was your response to 18 Rc1. You ignored the pin set up against your king and your move 18..f5 invited in his knight and 19.. Qd6 made things worse. That should have led to real trouble, if your opponent had won your queen with 20 Rxc6+. You should have lost the game there but your opponent bungled his attack. Look at the position after your silly rook move Re8 and notice how lonely your king was. As it was, you only lost a piece.
You could have played 18 ..Kb7 and broken the pin. There are a lot of things you could have done. Try playing the position against as white to see if you could have done better than your opponent did.
I would look for courses or books on how to recognize pins.
Chess.com is offering a free course for beginners:
https://www.chessvl.com/p/intro-to-chess-crash-course