Solution by maromex.
Let P(x,y) denote the given assertion f(x2+yf(y))=x2+y2.
P(x,0):f(x2)=x2. This means f(x)=x for all x≥0.
For any fixed y, we have x2+yf(y)≥0 for all sufficiently large x. This means x2+yf(y)=f(x2+yf(y))=x2+y2 for all sufficiently large x for a fixed y, which means yf(y)=y2. So f(y)=y for all y=0. We also have f(0)=0 by P(0,0).
So f(x)=x for all real x, and it works.