Poetry Said With Some Heretic Background
What about doing that type of poetry?
It would be committing the forbidden act, which is haram.
Metaphorical expressions are allowed if they do not mean the actual shirk or something forbidden.