Fix regex for class names