The Nord Stream pipelines are owned by Gazprom, in partnership with a consortium of privately owned Western European energy companies (Engie, Shell, E.ON, etc)
State owns a significant share of Engie, moreover because oil is a strategic resource, governments often have a right to intervene in corporate governance when it threatens national security.