Full disclosure, I am mixed race (but 'look' black enough for people to have seen me as such if that makes sense).
I don't think this is automatically a race issue, but I think race and the associated attributes you have as a person from your environment, can be a component of a vital word which I despise - 'culture'.
I used to work in an office with lots of Kirstys, Nathalies, Lauras. Blonde hair or dyed such, well turned out, middle class, they drive Sportages and Audi Q3s . Very chatty, very outgoing, always hosting after work drinks..............
....for those people who fit their visual and spoken aesthetic.
I was mixed race, no outward signs of success despite having plenty of disposable like they did, and living in zone 2 in London not a suburb.
I don't think they despised my skin colour or found me anything but pleasant and helpful. I just didn't "fit".
This is a big problem, but it's also a hill many people defend and die on because of folks right to self organise as they choose.
It is unprofessional however not to acknowledge a colleague for writing helpful advice at work. This is a problem and maybe something you could raise with your manager to help them see how you feel you are perceived?