It worked very well cutting smoking in the UK, in tandem with advertising and shop display restrictions.
https://www.govtech.com/fs/automation/San-Francisco-Rolls-Ou...
> As of December, San Francisco has transitioned its SFpark pilot into a citywide program to set rates on all 28,000 parking spaces on public streets and 14 city-operated garages. The plan prices parking based on demand — not unlike the approach used by airlines to set fares or ride-hailing apps to set the price of a trip.
> “Demand-responsive pricing,” as the concept is known, means “prices could fluctuate block by block, time-band by time-band, and then weekday versus weekend,” said Hank Wilson, parking policy manager for the San Francisco Municipal Transportation Agency (SFMTA).
> The new approach to setting parking rates in San Francisco based on demand is not intended as an effort to raise parking revenue, officials stress. In fact, the new system will likely be revenue neutral because rates on many streets and in garages will likely drop.
What you are basically arguing is that government should either penalize poor people for making health choices they don't like, or limit the ability of poor people to make those choices by making it too expensive for them.
This does not into a functional society.