Race and ethnicity are, perhaps, similar kinds of cultural constructs, but they are orthogonal categories.
See, e.g., https://nces.ed.gov/ipeds/reic/definitions.asp
They are both cultural in-group, out-group constructs, they just happen to be different constructs rather than synonyms.