Let $(M,g)$ be a Riemannian manifold. Let $C^{\infty}_{Nat}(M,g)$ be the $\mathbb{R}$-algebra of scalar invariants of the curvature tensor and all its higher covariant derivatives. An example of a member of $C^{\infty}_{Nat}(M,g)$ is:
$$\sum_{i,j,b,k,c,d,f=1}^nR(e_i,e_j,e_j,e_k)\nabla R(e_k,e_b,e_b,e_c,e_i)\nabla R(e_c,e_d,e_d,e_f,e_f)-\sqrt{2} \sum_{i,j=1}^n R(e_i,e_j,e_j,e_i)$$
Question: If $C^{\infty}_{Nat}(M,g)$ is finitely generated as an $\mathbb{R}$-algebra, must $(M,g)$ be homogenous ? If not, can you please provide counterexamples ?
Thank you