See the little prompt in the top right of your screen which says "move to the side or back at the exact moment the enemy is striking"? That's exactly what you have to do. Tap strafe or backpedal when they begin their attack

Tbh I don't get the whole dodge system in this game to this day. I click to the side when the green shield appears, sometimes it works, sometimes it doesn't. I just don't dodge now because it's just way too unpredictable🤷‍♂️

The green shield is for parry/ masterstriking. You should be pressing the button when it's on the screen. Meaning if you wait to see it you'll be late with your timing.

The dodge timing is even earlier.

I don't know the key bind on keyboard but on controller it is A/X and a direction with the left analog. Though you have to time it life a perfect block in order to pull it off and be standing almost still.

It is easier to do from a standstill. If moving change directions, other than forwards.

The timing is earlier than for a parry/masterstrike.

If you want to land a hit after a dodge, the highest percentage chance you have is if you're already holding an attack ready before you dodge and let it go right after your feet set.

When an enemy dodges left or right I have found they can almost never counter after if you attack to the side they dodged to. If they dodge backwards stab them in the face as they're resetting their feet.

Easiest way to practice, go to the training ring, back yourself into a corner then sprint to opposite corner, wheel 180 and get ready. 99% of the time Bernie or whomever you're practicing against will chase you and attack as soon as they reach you.

You can be holding block while dodging.

You... step to the side. The same way you would walk to the side normally. So if you're on PC, just press A or D when the game prompts you to dodge.