Sum of all real numbers $x$ such that $(\text{A quadratic})^\text{Another quadratic}=1$.

Hint

You have missed $$(-1)^{\text{even number}}=1$$

Now if $x^2-5x+5=-1,x=?$

Which values of $x$ make the exponent even?