Adapt size of brackets in text mode

In text mode, i.e. characters enclosed by " ", brackets do not adapt to the content. How can I achieve this? Actually I want to write a text that includes formulas. Without " " the variables are differently colored, depending if they are assigned or not. With " " they have the same color but brackets look disgusting.

• This mathematica.stackexchange.com/questions/258436/… can answer your question. Dec 19, 2021 at 16:16
• Isn't the inbuilt way just as you show and unsatisfactory to you? Here's another way: i.stack.imgur.com/a8lln.png -- is it inbuilt enough? Dec 19, 2021 at 16:59
• Here's a simpler code that achieves the desired effect: "\!$$(\*FractionBox[\(a$$, $$b$$])\)" Dec 19, 2021 at 17:09

   " $$\left(\frac{a}{b}\right)$$ "