There actually were black Confederate soldiers. Maybe not very many.
And more than a few black Waffen SS.
The Nazi laws didn’t really address blacks much at all.