Python: deselect outliner elements
That highlight is indicating the current active object.
I was about to tell you that you can't really do that, since most of that data is read-only, but after some stubborn, extra googling, it turns out you actually can!
bpy.context.view_layer.objects.active = None

I guess we both learned something new today.