Granted this doesn’t always work but since many state and local governments have similar rules for EnergyStar it does drive a lot of compliance with a completely optional certification in many industries.
My VCR still plays cassettes 30 years after it was made, but my 1st Gen iPad stopped playing YouTube videos 5 years after it was made.
The only way to solve this problem is to regulate markets that become unfree where observed to be necessary to do so.
You don't need regulation to fix this, you need startups to go compete with the entrenched firms that are bricking their customers' devices.
Any industry that involves leveraging copyrights and patents to keep the incumbents in power, for example.
Consumers are stupid. To most, computers are still Magic Box.
Free market dynamics like you, and others, describe only work IF the consumers are able to have the knowledge easily, cheaply, and instantly. You'll find in modern society, with complex products and supply chain, this is becoming harder to satisfy.
Look at the FDA. Why don't consumers just desire lower calorie products and go towards those, why does the FDA need to force serving size suggestions? Because Comsumers can't spent 10,000 dollar and hundreds of hours burning every single piece of food they buy to deduce the calories.