[Feature] Add check for extra brackets in do loops

Do loops must use extra brackets if assignment happens in the loop

Fixes: #10130
Release: 0.0.7