better regex for searching both names and slugs