Motion Matching is new feature in unreal 5.4 and in this tutorial I will help you learn this step by step. To do this we will also import animations from the Lyra Sample Project as well.
https://dev.epicgames.com/community/learning/tutorials/1JMK/motion-matching-in-unreal-engine-5-4-step-by-step-tutorial