Get the Right/left velocity from a rotation and velocity

The question is on the title I want to get the right/left velocity from a rotation and vector velocity so I can subtract it from the velocity to stop the player from moving right and left.

Off the cuff this sounds like you want the velocity vector multiplied by the forward vector. That should give you the velocity in the forward direction.