Create a stroke to a part of a text

Hello everyone,
I’m facing an interesting issue in Figma that seems to require a solution. I want to apply a stroke only to a specific part of a text. Currently, when I select the desired portion and apply a stroke to it, it affects the entire text. The simplest solution is to convert it to a separate layer and use it alongside or within the text. But is there a better solution?

Unfortunately the only solution is to separate the text in some way into a separate layer.