Add utils to check if a pattern is extensible