The only solution seems to be to make your expressions POSIX ERE compliant and free from edge cases -- as I ended up doing on the above project.

The expression in question here does have an error. As indicated by the error message, the pipe at the beginning of the sub-expresion is redundant (and seemingly not permitted by some regex implementations).