This question already has an answer here:
Is it possible to write a command using TikZ to produce a small rounded and colored box around a piece of text, inside sentence? I know the
\framedbox command gives a rectangle around a piece of text (but not a rounded rectangle as far as I know).
I guess one could also adjust the color of the background when using framebox (using tips from answers to this question), but I don't think it could help with other factors such as the box's edge-width, the amount of roundness, etc.
The following picture was produced with Inkscape for the purpose of the question.