It is most commonly referred to as buyers remorse
Buyers remorse is a situation where a customer experiencing regret after a purchased of a product is being done.
Buyers remorse is considered as post-decision dissonance to punish ourselves after we do something bad.