ANSWER:
In order for any investment into the shares of a company, two conditions must be fulfilled:
1- The line of work is halal.
2- The company doesn’t deal in Riba by financing its activities through riba or through deposits.
https://islamqa.info/en/answers/112445/ruling-on-buying-and-selling-shares
https://islamqa.info/en/answers/69941/the-difference-between-shares-and-stocks