Yasen and Borei are not some missile boats or diesel submarines
They are nuclear submarines, strategic assets
There wasn't a single case in post Soviet era where nuclear submarine was cancelled
Even boats from classes that have been discontinued have been completed as spy subs (Podmoskovye) or different nuclear vessel class (Dolgoruki) and this was when they had less cash and statehood than Somalia
You can't can't compare boomers with missile boats that weight less than sonar on SSGN
Recently I remember only the patrol ship/frigateTuman (third ship of the project 11540, Neustrashimy class), and the only Novik-class frigate, Project 1244.1 (later decided to be converted in a.training ship (borodino)) that were in various status of.completeness in yantar and were scrapped.
They were however outdated concepts and for which the engines were not.anymore available, so scrapping.them freed valuable space in the shipyard.
At the beginning they.hoped to.complete them and sell to.foreign.customers or use.them as training ships, but probably the the ukrainian crisis made them decide against.it.
The other ships.not completed were in banderastan, but Russia could.not do anything about those shipyards