It seems you should have been able to spot that your wsb could become trapped. The computer has the game even after move 22. Bxe5, so clearly 22...Ne4 is a mistake after Nxe4...Bxe4.
22... Nd7 would have probably saved you, with the idea of pushing f6, giving your lsb an escape. Even if 23. h5, you could have moved your lsb to e4?
Beginners are usually advised not make too many pawn moves in early stage of the game and develop the pieces instead. That's what i did, but ended up being crushed by my opponents pawns. What did i failed to understand during this game? Should i have gained more space by advancing my pawns instead of doubling my rooks on the half open file?