I ran into a similar situation involving SVG scaling in a Python program creating SVG files to print and cut reproduction punched cards.
I eventually used a command-line flag to select the scale factor corresponding to Inkscape or LightBurn:
SVGSCALE = 96.0/25.4 # converts "millimeters as SVG points" to real millimeters
parser.add_argument('--lbsvg', action='store_true',
help="Work around LightBurn SVG issues")
… snippage …
transform="scale(" + repr(1.0 if args.lbsvg else SVGSCALE) + ")",
stroke=Tooling if args.layout == "laser" else CardMark,
stroke_width=svg.mm(DefStroke if args.lbsvg else DefStroke/SVGSCALE),
fill="none",
)
)
Perhaps SVG scaling has as many dialects as G-Code …