I’ve had the same problem and this forum was the only one addressing this issue, but the problem unfortunately wasn’t solved.
What was happening to me it’s that the Shape was “curly” in a way I couldn’t notice (see the attached image for a more visible way, just to get what I’m saying lol)

Just double-click the Shape Tool (Q) and it will reset to “normal”, create a new shape and it’ll work!