Along these lines,
\[ \begin{align*} \exp \begin{pmatrix} a & -b \\ b & a \end{pmatrix} \quad &= \exp(a) \exp \left( b \begin{pmatrix} 0 & -1 \\ 1 & 0 \end{pmatrix} \right) \\ &= \exp(a) \begin{pmatrix} \cos b & -\sin b \\ \sin b & \cos b \end{pmatrix} \end{align*} \]
\[ \exp x = 1 + x + \frac{x^2}{2!} + \frac{x^3}{3!} + \frac{x^4}{4!} + \dots\]
\[ \exp it = 1 + it - \frac{t^2}{2!} - i \frac{t^3}{3!} + \frac{t^4}{4!} + \dots = \cos t + i \sin t \]
The above shows the Taylor series are equivalent and since they converge absolutely, the expressions are equal with both complex numbers and real 2x2 matrices of this form.
Thus
\[ \exp \begin{pmatrix} 0 & -b \\ b & 0 \end{pmatrix} = \begin{pmatrix} \cos b & -\sin b \\ \sin b & \cos b \end{pmatrix} \]