Mapnik SVG parsing errors

Building a tile server with Bookworm ( libmapnik3.1 (3.1.0+ds-3 and others)) I have a ton of SVG parsing errors.
I don’t want to re-invent the wheel, so is there a script somewhere to cleanup my svgs ?
Something is mentionned at Clean SVG symbols by pitdicker · Pull Request #4457 · gravitystorm/openstreetmap-carto · GitHub but I fail to find the awk script. in the repo.