Tracemetrics is unmaintained and the last update is from 2016 (8 years ago).
Tracemetrics has been never an official tool supported by ns-3.
The logs used by Tracemetrics are NOT intended for automatic parsing and data collection / analysis.
Do NOT use Tracemetrics to analyze your simulation.