For the Fubini–Study metric on $\mathbb CP^n$ (it has positive 1/4-pinched curvature). It has totally geodesic embedded $\mathbb CP^{n-1}$ has codimension $2$. Then you can construct more larger codimension ones.
And more trivial examples are given by closed geodesics in any positively curved space.