p =re.compile(r'query(?!\s*(?:management|resolution))')
test_str ="The query resolution with this query management should not get highlighted. Only this query should get highlighted.The query resolution with this query management should not get highlighted. Only this query should get highlighted."