Throw error if not valid BEM-naming in `parse` method