Syntactical parentheses for precise positioning of superscripts and subscripts?

You can use the same trick as in How to combine italic text with superscript in mixed content? - #2 by Andrew.

$f^a_b$
$f^a""_b$
$f_b""^a$

image