Text this: Strategy for pattern recognition‐driven optical chemosensing based on polythiophene