What version of Mathematica are you running? On "13.1.0 for Mac OS X ARM (64-bit) (June 16, 2022)" I get
-x + (I (-Sqrt[1 - x] + Sqrt[1 - x] x^2 - Sqrt[1 + x^2] +
x (-2 Sqrt[1 - x] + Sqrt[1 + x^2])) ((-1 - I) Sqrt[2]
Sqrt[(-1 + I) (-1 + x)] (1 + x^2) EllipticE[
ArcSin[Sqrt[1 - I x]/Sqrt[2]], 1 + I] -
2 Sqrt[2]
Sqrt[(-1 + I) (-1 + x)] (1 + x^2) EllipticF[
ArcSin[Sqrt[1 - I x]/Sqrt[2]], 1 + I] + (1 + I) Sqrt[2]
Sqrt[(-1 + I) (-1 + x)]
EllipticPi[1 - I, ArcSin[Sqrt[1 - I x]/Sqrt[2]],
1 + I] + (1 + I) Sqrt[2] Sqrt[(-1 + I) (-1 + x)]
x^2 EllipticPi[1 - I, ArcSin[Sqrt[1 - I x]/Sqrt[2]], 1 + I] +
I Sqrt[1 + x^2] Sqrt[1 - x + x^2 - x^3] Log[1 + x]))/(2 (-1 +
x) (1 + x^2) (-1 - 2 x + x^2 - Sqrt[1 - x + x^2 - x^3])) +
x Log[Sqrt[1 - x] + Sqrt[1 + x^2]]