A former Republican appointee of President Donald Trump is running for Congress in liberal San Francisco — after registering as a Dem in the crowded primary field of progressives, The Post confirmed.