Looks like the requirements for classnames has changed somewhere between kentico 7 and 9, and as a result, special characters (including 0-9 and '_') are considered invalid.
You will need to use the kentico api (see specifically code relating to DataClassInfo/DataClassInfoProvider classes) to go through and update any form which has these characters in the classname.