Upload problem arduino nano esp32

That is actually correct. These are ANSI color codes, green for info logs.

It additionally needs

monitor_raw = yes

in the platformio.ini to display it correctly. (see similiar topic)