The easy way is to have two text widgets below each other, with render mode 'Text'. The latter you give some styling (font-weight: bold, or add class text-bold (if available)).
Another way could be to use a appstore widget that renders a piece of variable html, like Format String: https://appstore.home.mendix.com/link/app/264/