Change to regex pattern for splitting namespaced classes