Torque is a mathematical object called a bivector, produced by taking the wedge product of $\mathbf{r}$ and $\mathbf{F}$. Bivectors can be thought of as area elements of planes; the magnitude is equal to $rF \sin \theta$ and the plane itself contains $\mathbf{r}$ and $\mathbf{F}$.
By a great coincidence, in three dimensions, there are three distinct planes (xy, yz, and zx), and also three distinct axes (z, x, and y). As such, we can associate any bivector with a vector, which all textbooks do to avoid having to introduce extra math. (Cross product actually means "take the wedge product, then convert the resulting bivector into a vector".) The problem is that this doesn't work in any dimension other than three.
In two dimensions, there's only one plane, so you can associate bivectors with scalars. That is, you can say "the torque is +3 Newton-meters".
The other answer addressed two dimensions by adding a third dimension, but that doesn't work for four dimensions. In four dimensions, there are six planes, so you can't associate the wedge product with either a scalar or vector.