import re
consec_re = re.compile('^(([aeiou][^aeiou])+|([^aeiou][aeiou])+)$')
consec_re.match('bale')
consec_re.match('bail')
Regex in Python to find words that follow pattern: vowel, consonant, vowel, consonant