Rug pull scams "pumping up" a new project, nonfungible token (NFT) or coin to get funding. After the scammers get the money, they disappear with it. The coding for these investments prevents people from selling the bitcoin after purchase, so investors are left with a valueless investment.
Ok the way understand it is that developers are creating new projects and then pumping it up, creating a lot of hype and then suddenly disappear in crypto space with the money. And in the level code, these developers put something that the investors cannot sell their tokens?
In any case though, I wouldn't in the first place invest on such hype project or those who looks very suspicious in the first place. I know it's hard to know it in the beginning. But perhaps if you do your own research then maybe you will know that this project might look like a scam and obviously not to be trusted with even 1 satoshi.