Given a regex, generate all (potentially infinite) possible inputs that match the pattern.