Currently I am going over explicit symmetry breaking in chiral Lagrangians. In particular, consider a term \begin{equation} \mathcal{L}_{\text{mass}} = \bar{Q}MQ \end{equation} where $Q = (u, d)^T$ and \begin{equation} M = \begin{pmatrix} m_u & 0\\ 0 & m_d \end{pmatrix} . \end{equation} Following some course notes, we write \begin{equation} Q = e^{-\frac{i}{2F}\gamma_5\vec{\pi}\cdot\vec{\sigma}}\tilde{Q}. \end{equation} Then, \begin{equation} \bar{Q}MQ = \bar{\tilde{Q}}e^{-\frac{i}{2F}\gamma_5\vec{\pi}\cdot\vec{\sigma}} M e^{-\frac{i}{2F}\gamma_5\vec{\pi}\cdot\vec{\sigma}} \tilde{Q} . \end{equation} We then replace the quark bilinear with its vacuum expectation value, \begin{equation} \langle 0| \bar{\tilde{Q}_i}\tilde{Q}_j |0\rangle = -v^3\delta_{ij}. \end{equation} which gives \begin{equation} \begin{split} \bar{Q}MQ &= -v^3\text{tr} \left[ e^{-\frac{i}{2F}\gamma_5\vec{\pi}\cdot\vec{\sigma}} M e^{-\frac{i}{2F}\gamma_5\vec{\pi}\cdot\vec{\sigma}} \right]\\[0.25cm] &= -v^3 \text{tr}\left[ e^{-\frac{i}{F}\gamma_5\vec{\pi}\cdot\vec{\sigma} }M\right]\\[0.25cm] &= -v^3\left[ \text{tr}(U^\dagger M) + \text{tr}(MU) \right] \end{split} \end{equation} where, $$ U = \exp\left(\frac{i}{F}\vec{\pi}\cdot{\sigma}\right). $$
I am unsure about the equivalence between the second to last line and the last line. Any help would be appreciated!