[or_regex] fix clang analyzer warning