First you need to export them from Yandex into a file (https://browser.yandex.com/help/security/passwords-export-from-other-managers.html)
Then inside Opera GX : turn on opera://flags/#PasswordImport in Opera and import the password file by going to opera://settings/passwords, clicking the sub-menu on the side (3 dots ) and choosing "import".