It is not possible for all of the log collectors to correctly strip them out.
vector --help | grep '\-\-color' -A 5
--color <COLOR>
Control when ANSI terminal formatting is used.
By default `vector` will try and detect if `stdout` is a terminal, if it is ANSI will be enabled. Otherwise it will be disabled. By providing this flag with the `--color always` option will always enable
ANSI terminal formatting. `--color never` will disable all ANSI terminal formatting. `--color auto` will attempt to detect it automatically.
[env: VECTOR_COLOR=]
[default: auto]
[possible values: auto, always, never]
It is not possible for all of the log collectors to correctly strip them out.