Let $S_n$ be the symmetric group. For any sequence of numbers $y=[y_1,y_2,\cdots,y_k]$, define the flattening operation as $\mbox{flatt}_{k}(y)$ as a relabeling of $y_1,y_2,\cdots,y_k$ in terms of their relative order with numbers from $[k]$. So for example $\mbox{flatt}_3([4,2,5])=[2,1,3]$, $\ \mbox{flatt}_5([2,1,3,4,5])=[2,1,3,4,5]$.
For a permutation $\pi\in S_n$, denote by $\pi(2,n-1):=[\pi(2),\pi(3),\cdots,\pi(n-1)]$
Define $X_1:=\{[1]\}$, $X_2:=\{[2,1]\}$. Now define
$$X_n=\{\pi\in S_n:\ \pi(1)=\pi(n)+1, \ \mbox{flatt}_{n-2}(\pi(2,n-1))\in X_{n-2} \}$$
For example,
$$X_1:=\{[1]\}$$ $$X_2:=\{[2,1]\}$$ $$X_3=\{[3,1,2],[2,3,1]\}$$ $$X_4=\{[4,2,1,3],[3,4,1,2],[2,4,3,1]\}.$$
It's easy to see $|X_n|=(n-1)!!$. Does this class of permutations have a common name? Have they been studied before? I've checked the lists at oeis.org (by cardinality) and findstat.org but didn't see anything.
Edit: Here's the OEIS for (2n-1)!!, the even $X_{2n}$'s.