Indeed -- in theory, at least -- anyonic statistics does not so much require the ambient space to be 2-dimensional, as it requires the anyonic defects to have co-dimension 2 (hence dimension 2 less than that of the ambient space).
To give an impression, the following is a list of a few articles that consider 1-dimensional anyons (anyonic strings) in 3(+1) ambient dimensions (all in theory -- there is nothing yet on this in experiment/engineering, as far as I am aware, even though it is quite conceivable that anyonic string defects can exist in realistic materials):
J. Baez, D. Wise, A. Crans: "Exotic Statistics for Strings in 4d BF Theory", Adv. Theor. Math. Phys. 11 (2007) 707-749 (arXiv:gr-qc/0603085)
A. Bullivant, J. F. Martins, P. Martin: "Representations of the Loop Braid Group and Aharonov-Bohm like effects in discrete (3+1)-dimensional higher gauge theory", Advances in Theoretical and Mathematical Physics 23 7 (2019) (arXiv:1807.09551)
L. Kong, Y. Tian, Z.-H Zhang: "Defects in the 3-dimensional toric code model form a braided fusion 2-category", J. High Energ. Phys. 2020 78 (2020) (arXiv:2009.06564)
In mathematical terms, passage from point-like anyons in 2(+1) dimensions to string-like anyons in 3(+1) dimensions corresponds to passing from the braid group (and its representations) to the "loop braid group" (pointer to an nLab page that I once wrote). This might also be called the "string braid group".
Going further up to any ambient dimension, a "$p$-brane" in $(p+2)(+1)$ dimensions -- often called a "defect brane" -- is expected to exhibit anyonic statistics, see for instance p. 65 of:
- J. de Boer, M. Shigemori: "Exotic Branes in String Theory", Physics Reports 532 (2013) 65-118 (arXiv:1209.6056)
I am taking the liberty of closing by mentioning that just today we presented a proof of this expectation (assuming common hypotheses on the general mathematical rules of brane charges):
- H. Sati, U. Schreiber: "Anyonic Defect Branes and Conformal Blocks in Twisted Equivariant Differential (TED) K-theory" (arXiv:2203.11838, nLab)