There is a theory that Obi might be a villain based on events in the latest episode of Loki. It seems like he could be helping He Who Remains return, which would make him a villain in the eyes of Loki and his allies.