def clear_all_regions():
 for window in sublime.windows():
  for view in window.views():
   for region_key in view.settings().get('bracket_highlighter.regions', []):
    view.erase_regions(region_key)
   view.settings().set('bracket_highlighter.locations', {'open': {}, 'close': {}, 'unmatched': {}, 'icon': {}})

def clear_all_regions ( ) : for window in sublime . windows ( ) : for view in window . views ( ) : for region_key in view . settings ( ) . get ( 'bracket_highlighter.regions' , [ ] ) : view . erase_regions ( region_key ) view . settings ( ) . set ( 'bracket_highlighter.locations' , { 'open' : { } , 'close' : { } , 'unmatched' : { } , 'icon' : { } } )
clear all regions .