For the time being, the West has been supplying Putin's troops with plenty of money (taxes from selling natural resources go into the federal budget, which is used to fund the military, and therefore the war). They made record profits last year.
Of course, the price cap is only in force since December 2022, so the effects haven't fully shown themselves yet.
If selling oil was unprofitable Putun would just burn it instead of selling it at loss just like they burned natural gas for $10,000,000 / day for months.
[0] https://www-bbc-com.translate.goog/russian/news-50392407?_x_...