Getting compile error on pyparsing.exceptions.ParseException: Expected end of text, found '_' (at char 64680), (line:1003, col:50)

hi… i have a very simple project with this configuration:
and the code below (i’m trying to print logs in debug console because i have a project that uses the serial to output binary data
this will fail only if add either -g3 or -ggdb3 in the end of the debug_build_flags
i’m using platfromio version 3.2.0

[env:esp32dev]
platform = espressif32@6.3.1
board = esp32dev
framework = espidf
upload_port = COM9
upload_speed = 921000
upload_protocol = esp-prog
debug_tool = esp-prog
debug_speed =25000
debug_init_break = tbreak setup
build_type = debug
debug_build_flags = -O0 -Og -g3

#include <esp_log.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "esp_wifi.h"
#include "esp_event.h"
#include "esp_log.h"
#include <esp_app_trace.h>
void setup()
{
     esp_log_set_vprintf(esp_apptrace_vprintf);
}
void app_main()
{
    
    setup();
    vTaskDelay(500);
    ESP_LOGI("test", "Got %s", "hello");
}