Well, words can mean whatever you want, but usually race refers to the discrete-ish social categories that have been constructed based roughly on specific phenotypes. For example Black people were a discrete legal category for most of America’s history, and were nominally 3/5 of a person and treated as much less. Now, they have equal legal rights on paper, but the category remains informally.