One of the interesting poetry collections on my shelves is The Poetry of George Boole by Desmond MacHale (Logic Press, Ireland, 2020 -- and published in the USA for Logic Press by Lulu.com). This is not simply a poetry collection -- but poetry with commentary. MacHale includes more than seventy surviving poems by the Irish mathematician Boole (1815-1864) -- and he also discusses Boole's views of the connections between Science and the Arts with an initial chapter is entitled "Poetry and Mathematics."
It is quite appropriate that Boole should relate poetry to mathematics since he was, primarily, a mathematician; his Boolean algebra is basic to the design of digital computer circuits) Boole's own poetry, however, found most of its inspiration outside of math. Here is his Sonnet 20 (Sonnet to the Number Three); written in May 1846 and suggesting that belief in the religious Trinity is connected with our interpretation of space in three dimensions.