Using Windows and IntelliJ IDEA 2024.3 I just added to
Run Configurations -> Add VM Options
this flag:
-Dlog4j.skipJansi=false