I didn't come up with a valid solution. In the end, I decided to stop using log-symbols, and I chose picocolors instead of chalk.
For piccolors It works without transformIgnorePatterns
transformIgnorePatterns