Most likely we will not have the luxury of getting this invariance for arbitrary $n$ when the dimensionality of the space is greater than two. In two dimensions the invariance stated in the problem is achieved through the geometric possibility of forming a regular polytope with any number of vertices $\ge3$. In three or more dimensions we are less lucky; only certain vertex counts give regular polytopes.
With this in mind consider the case of four points arranged at the vertices of a regular tetrahedron in three-dimensional space. Since the scalar product is invariant under rotation we may take the vertices as $(\pm\sqrt{1/3},\pm\sqrt{1/3},\pm\sqrt{1/3})$ where we select an even number of signs negative. We define our unit vector as $(x,y,z)$ with $x^2+y^2+z^2=1$ and seek to prove that the sum of powered scalar products is invariant for the prime exponents $2$ and $3$. We actually get
$[(+\sqrt{1/3},+\sqrt{1/3},+\sqrt{1/3})\cdot(x,y,z)]^2+...+[(+\sqrt{1/3},-\sqrt{1/3},-\sqrt{1/3})\cdot(x,y,z)]^2=(4/3)(x^2+y^2+z^2)=4/3$
but
$[(+\sqrt{1/3},+\sqrt{1/3},+\sqrt{1/3})\cdot(x,y,z)]^3+...+[(+\sqrt{1/3},-\sqrt{1/3},-\sqrt{1/3})\cdot(x,y,z)]^3=(8/\sqrt3)(xyz)=\text{ not invariant}$
The failure of the tetrahedral arrangement to achieve an invariant sum with exponents of $3$ may be tied to the theory of spherical harmonics. When we form the cubic sum, it will be some superposition of spherical harmonics of odd degree less than or equal to three. It must also conform with tetrahedral symmetry. Well, there is a degree three spherical harmonic with tetrahedral symmetry, which is $xyz$ — the same as the function we found in the summation above. There is, however, no tetrahedrally symmetry spherical harmonic of degree two, which accounts for successfully getting invariance with an exponent of two.
We can use this theory to assess the remaining four Platonic solids. Unlike the tetrahedron, these all possess a (proper) center of inversion, and only even-degree spherical harmonics conform with that. As we saw with the tetrahedral case, the only even prime ($2$) is too low a degree to generate a symmetry-conforming spherical harmonic, so the invariance requested by the problem is achieved for octahedral, cubic, icosahedral and dodecahedral arrangements of "roots" on a unit sphere.
But spherical harmonics with even composite degree may conform with the symmetry of the Platonic solids, so we cannot extend the invariance generally to composite exponents unless we stick with odd exponents. However, the icosahedral and dodecahedral arrangements do have a slight superiority over the other Platonic solids: there is no fourth-degree spherical harmonic conforming with fivefold rotational symmetry elements of these figures. Thus in addition to prime exponents and odd composite ones, the icosahedral and dodecahedral arragements give invariance with an exponent of four (but not six or in general higher even exponents).