It seems that you only want to match digits. Therefore you can remove a-zA-Z
from the character classes. Also note that s
could also match a newline, so if you don't want the match to span over newlines, you can match an optional space instead.
(?:DE|AT)(?: ?[0-9]){18}(?:(?: ?[0-9]){2})?
See the updated regex demo
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…