In Src_filter = -<src/> +<other_folder/> not taken into account the exact opposite was observed.
Are you working with the latest PlatformIO core version? (CLI → pio upgrade --dev)
What’s the minimal project structure and platformio.ini to replicate your problem?