[ZDWB-107] Further improved the state specification validation by defining it with a regex.