* fix: missing case when finding invalid bracket

let's reproduce with this test case: '<test>>'
* erase previous added region before finding invalid bracket
* decorate region