If there is a finite input it is regular.
Formally transformers should be capable of modeling it with the right weights, but they show good evidence those weights can't be learned with gradient descent. Whereas a neural turing machine or stack machine can learn them with gradient descent.
In standard automata theory, all inputs to automatons are finite.