See the CARB Regulation section here: https://en.m.wikipedia.org/wiki/Range_extender
Why not instead set a carbon price and otherwise let the market and owners decide what mix of gasoline and grid electricity to use?
But yeah, don't buy a Prius Prime for the track. But it'll work great for going to the grocery store for a very wide variety of lifestyles and living situations.
It is possible to make cheaper cars, but they aren't competitive against nicer used cars. Back when cars didn't last very long it was viable to sell a car with basic amenities, like keyed locks, roll up windows, a single exterior mirror, no stereo, no AC, etc. But now, few are going to pay the prices that would demand when a used car for around the same price has all of those features. This pressure extends to cars of any drivetrain type.