/^(?: (?:re|fw):\s*(?:\w+\s+)?\Q$to\E$ |(?-i:\Q$to\E)\s*[,:;!?-](?:$|\s) |\Q$to\E$ |,\s*\Q$to\E[,:;!?-]$ )/ix;
https://www.regexplanet.com/share/index.html?share=yyyyfzeyp4r