The knight was fine on d5, but Arjun gets ready to attack the d4-pawn quickly, a more direct play that is his characteristic. I'd have played
22. g1f1 It's usually a good strategy to bring the king to the center in an endgame. 22... f6d5  23. f1e2  23... h7h6  24. g5e3 