6. (10 points) As shown in the figure, the side length of square $ABCD$ is $5$, and $E, F$ are two points outside the square, satisfying $AE=CF=4$, $BE$ $=DF=3$. Then $EF^{2}=$ $\qquad$

Translate the above text into English, please retain the original text's line breaks and format, and output the translation result directly.