Updated docs with custom pattern types example