Figma’s SVG export of center-aligned text results in a <tspan> with default left alignment, such that center alignment is not preserved when the tspan content changes.
Ideally, the tspan would have text-anchor="middle" and an x attribute value based on the middle of the original Figma text element’s horizontal location such that tspan content changes would be continue to be centered aligned.