Either escape the e before creating the regexp, or better, use regexp instead of string when specifying the :expiration_exceptions