Dynamic resizing UI element

I’m making a UI where a rounded rectangle image sits behind a number as a placeholder. I want it to automatically expand as the number gets longer, but I don’t want the rounded corners to stretch or become distorted. Is there a built-in way to do this in GDevelop?

you can try using a 9-patch