My understand is that "a refugee" and having residency (permanent or not) are two separate and unrelated things.
Refugee = outside your country for a specific set of reasons you can find on Wikipedia.
What I meant was that being a refugee doesn't prevent EU companies from hiring you. I'm well aware of how terrible sanctions are, but not all EU countries have the exact same set of blockade/embargo as American ones. In general, work laws and authorization between any two countries that don't have explicit agreement tend to be difficult.
I am not going to argue with you or refer you to wikipedia. Instead, you may take a look at any company that hires globally and tells me then what is Syria's status or Syrian national.
This applies to GitHub and all American companies and it's not "work laws" this how financial sector works around the globe.
Another thing quickly, no one is asking to hire on a humanitarian basis. Don't deny people their right to work and profit because of who they are.