How to use different type styles in a formula

In the formula editor, this works nicely,

P_{ {RS}} = left( matrix{ p_AA # p_AG # p_AC # p_AU ## p_GA # p sub {“GG”} # p_GC # p_GU ## p_CA # p_CG # p_CC # p_CU ## p_UA # p_UG # p_UC # p_UU } right)

except I would like the subscript RS to be in the Libre sans style and not italic, and I couldn’t figure out how to make that happen. Is it possible?

Try with

P_{ font sans {RS}}

or

P_{ font sans {"RS"}}

Many thanks!

If the answer solves your question please tick the :heavy_check_mark:.