When setting up new text style with an opaque background, users get to choose how large this opaque background is. Dimension text does not have this option. Found this in Revit 2025.4. No idea why this never bothered me before. It might at least take the text offset into account and not have the dimension put stencils into the dimension line.