The special right triangle with sides $1,\sqrt{3},2$ is well known. But consider the triangle with sides $1,\sqrt{2},2$:

Here $AB=2,BC=\sqrt{2},CA=1$. This seems uninteresting at first, but it turns out that this triangle can be inscribed in a regular heptagon, as shown, such that $BF \perp FE$.

Can you show why this is true?
I am interested in a purely geometric solution rather than the usage of coordinates.
The process should be reversible; that is, given $BF \perp FE$, we should be able to determine $BC=\sqrt{2}$ and $BA=2$.
I will add some progress that I made, I noticed that $BF$ is actually the angle bisector of $\angle IFH$. Not sure how this helps.
Perhaps there is something with heptagonal triangles. We might be able to do something with Stewart's theorem, but then this does not work for the shorter side.