In many codes I see functions with a set of special characters that seem to have a function of their own.
I see this in almost every language, so what is it anyway, a class, a library, or what then?
Although there is a response in this question , in my point of view there may be a confusion of concepts when it is stated:
regex are finite deterministic automaton
That is, this answer does not answer this question in its basic concept.
A finite deterministic automaton is a finite state machine that in turn are recognizers of formal language types, one of them being regular expressions and it is about the latter that I look for definitions and characteristics in their implementations.