Flan is served cold. So you must chill it completely before unmolding.
Even if you nailed the jiggle test, a warm flan is a messy flan. It won’t slide out of the pan cleanly.
Let it cool on the counter for an hour. Then refrigerate for at least four hours—or overnight. Patience pays off in caramel sauce.