Earlier quoted context omitted.
A friend of mine who is white also was checked by the police a lot (in Germany), simply because he had a certain jacket that was apparently associated with drug dealers or trouble makers (checks can include anal probes for hidden drugs, apparently). So maybe dressing for the occasion could work. Sorry for your ordeal. You'd think police would know you after the umpteenth check.
This advice is warm spirited and practical and I endorse taking actions to make oneself safer. But , also, it's disgusting that anyone should be harassed by police and feel unsafe walking where they live. That is a terrible status quo and the GP deserves better, full stop.
I think even if police suspect somebody, they should still treat them with respect, though. That is the real issue.
You can not ask the police to never suspect anybody - that would make their jobs impossible and ridiculous.