There are many similar laws in the US, but many of them are fragmented either in different state jurisdictions or for different types of transactions.
They're called things like: "cooling-off law", "buyers remorse law", or "right to cancel"
Some examples: https://cal.lawsoup.org/legal-guides/consumer/contract-cance...