Regular expressions, why so difficult?

2 years ago I had to figure out regular expressions and write a check for a passport number, somehow I was able to do it)) now I don’t remember what I did there, because I think that dealing with ill-thought-out languages is a waste of time, and reading your answer, I don’t even understand 5% of what is there and how it should work)