I have an inline math expression involving a superscript and a hat:
\documentclass{article}
\usepackage{lipsum}
\usepackage{amssymb,amsmath,amsthm}
\setlength{\parindent}{0pt}
\begin{document}
\lipsum[1]
$\hat{\boldsymbol{\beta}}^{(k+1)}=\hat{\boldsymbol{\beta}}^{(k)}+(\hat{F}^{(k)})^{-1} \hat{\mathbf{S}}_{\boldsymbol{\beta}}(\hat{\boldsymbol{\beta}}^{(k)}, \hat{\boldsymbol{\alpha}})$,
\lipsum[1]
\end{document}
It looks like:
As you can see, the superscripts are pushing up the preceding line, which is not a behaviour I want. I would prefer the superscript was simply lowered to account for this. However, even though I have loaded amsmath, I'm not getting the behaviour described here: https://tex.stackexchange.com/a/574680/169711.
How can I lower the superscripts in this situation?

\bm(withbmpackage) instead of\boldsymbol. – hair-splitter Jun 18 '22 at 09:36\boldsymbolwas the problem. – Migwell Jun 18 '22 at 09:45\bmdoesn't work withunicode-math. – Migwell Jun 18 '22 at 10:34\symbfwithunicode-math. – hair-splitter Jun 18 '22 at 10:41\symbfdoes the right thing! – Migwell Jun 18 '22 at 10:44