So a closed curve is called a circle if all its points are at the same distance from a center point.
Similarly, if for each point in a closed curve the distances to two foci always add up to the same amount, it is called an ellipse.
What is a closed curve called if for each point, the sum of the distances to three or more points is constant?
In equations
$\sqrt{(x-x_{c})^{2}+(y-y_{c})^{2}}=r\\$ Circle
$\sqrt{(x-x_{1})^{2}+(y-y_{1})^{2}}+\sqrt{(x-x_{2})^{2}+(y-y_{2})^{2}}=d\\$ Ellipse
$\sqrt{(x-x_{1})^{2}+(y-y_{1})^{2}}+\sqrt{(x-x_{2})^{2}+(y-y_{2})^{2}}+\sqrt{(x-x_{3})^{2}+(y-y_{3})^{2}}=d\\$ ???
$\vdots$
Also, both the circle and the ellipse can be restated in a $y=$ form (like $y=y_{c}\pm\sqrt{r^{2}-(x-x_{c})^{2}}$ for the circle). That is, splitting the respective curve into two functions of the form $y=f(x)$, since for any given x-coordinate, there are at most two points that satisfy the circle/ellipse's equation. As far as I can tell, the kind of closed curve described by these kinds of equations never change from curving clockwise to anti-clockwise, so there also should be at most two points per x-coordinate that satisfy the equation, so it it seems to me that there must be two y=f(x) functions for each such curve as well, but it seems to be beyond my abilities to extract them from their equations. (I managed to get rid of the roots and isolate all the y terms, but the result is an equation of degree 8, and only special cases of equations above degree 4 are solveable.)
Essentially achille hui answered your question in their comment. According to Wikipedia there are several names, including $n$-ellipse, multifocal ellipse, polyellipse, egglipse, $k$-ellipse, and Tschirnhaus'sche Eikurve.
Wikipedia further writes that
So a degree 8 for the case of 3 foci is consistent with this. Solvability isn't discussed in the Wikipedia atricle, but I'd be surprised if it were solvable for generic positions of the foci.