Just spitballing but you'd have to align the desired shape somehow, perhaps with a singular value decomposition. Once its transform was normalized you could compare its shape, or perhaps its convex hull, with a database of banned shapes.
The problem is this is pretty easy to defeat (by adding extra sprues and spikes to the object, breaking it into two shapes, etc) and the more aggressive you get with the check the more you risk false positives.
An AI training set would involve creating a dataset of all the banned shapes, then generating tens of thousands of permutations of them however you believe people might try to trick it. Ultimately the AI would lock onto some small feature of the shape that scores it as positive, perhaps something trivial. That also leads to weird false positives. This also creates an arms race as people figure out what that feature is subvert it.
This problem is much harder in 3D than in 2D (currency). Since you can also cut, file, and glue shit that comes out of a 3D printer later I don't think this is a solvable problem. Like most gun control measures in the USA it appears to be aesthetics.
You could also just aggressively go false positive all over the place and say "fuck the users", with exceptions for cops. This is basically the USA's approach to drones.
It's an interesting article, I couldn't help but think of how "Pirate Speak" really comes from Robert Newton's acting in a famous Disney movie. So while it predates big tech's debasement of culture it's still a "top down" artifact, in a way. I guess you could say it came from a creative decision of an artist (Newton adapting his native accent) and initially caught on for good fun rather than for profit. So far less cynical than the radioactive shit getting pumped out now, if for no other reason than in the 1950s Disney hadn't figured that shit out yet.