One of the very special online resources for connections between mathematics and poetry (and also other art forms) is the Journal of Humanistic Mathematics. Edited by California mathematicians Mark Huber of Claremont McKenna College and Gizem Karaali of Pomona College, this free-access journal has online issues published each six months -- available here.
Poetry of many different forms is available in JHM -- and a poem from the January, 2023 issue that I enjoyed rereading recently is "Mathematics" by Northwestern Math Professor Kim Regnier Jongerius -- a poem inspired by the song "Memories" from the musical Cats and describing some of the joys and frustrations inherent in doing mathematical work. I offer one of its stanzas below and I invite you to go here (to the JHM website) to read more.
from Mathematics by Kim Regnier Jongerius
Mathematics!
I must wait for an insight
Try to think of connections
That I haven't before.
When the day breaks with no solution coming to me
Then my courage sinks to the floor.
Enjoy all six stanzas of the poem here in JHM.
THANK YOU, Jongerius and JHM for sharing thought-provoking words.