Advanced combat system with accurate blocking

Hi guys, I was wondering how you could make a combat system like that of Jedi: Fallen Order? e.g. block animation that stays with the enemy’s sword. I guess it involves an IK and anim notifies, but I don’t know how that could be implemented…

I tried using physical animation for it, but no luck. Any help or advice would really be appreciated!