Update regex for package.name generation