Yandex is the government approved search engine in Russia, which is impossible without the state exerting control over it. I wouldn't pay much attention to divestment, it's not how any of that works.
For instance here you can learn that Yandex NV is fully controlled by a group of Russian investors: https://www.rbc.ru/business/06/03/2024/65e7a0f29a7947609ea39...
The government's where the offices of a software company are physically located exert control over them. To follow this logic to its end and apply it even handedly results in nation based NIH syndrome surely?
Some clarification. Since 2024 Yandex NV split into Nebius (NL-registred NASDAQ-listed company, no longer a search engine) and russian-based Yandex. The latter is fully controlled by russian investors.