Google has a named spam policy for this now, expired domain abuse, added March 2024. The definition isn't about a spammy backlink profile at all. It's buying a domain and repurposing it primarily to trade on its old reputation with content that gives people little value. Their own examples are affiliate content on a former government site and casino pages on a former school.