write a regex pattern to match even number of letter `a`,re.compile('^([^A]*)AA([^A]|AA)*$')