I don’t think that math is something that is created nor discovered.
Math is a way of explaining the underlying properties of the universe. Over time, individuals have generated theories about those properties. Over time, those theorems have been tested by others, and we have come to accept them until someone else can prove them untrue.
If no one ever theorized that the hypotenuse of a right triangle could be determined by the other sides, it would still be true. There are undoubtedly many such facts out there that no one has yet pondered.
So what you say is math, is just an accumulation of all such theories. Those theories are simply our explanations of truths of our universe.
Let’s take math out of this for a minute. Let us say that you are one of the first humans ever to exist. You observe a rainbow. After a while, you begin to notice that there are often rainbows during or after rain showers. You begin to notice that the rainbows always occur with a certain relationship to you and where the sun is. You also begin to notice that the colors are always in the same order. You are excited about your observation. You would like to share it with others, but language has not yet been developed. First you will to somehow identify each color. Maybe you take leaves, berries, rocks and other things that represent each color and place them in a pattern on the ground. Next time, it rains, you observe that the colors are the same as your pattern. You share this with another human by pointing to the ground, and the sky until the point is made.
It seems to me that the explanation is like math. You made an observation. You aren’t able to prove it is true, but every time you observe it again, you are assuring yourself that it might be true. It will only take one time for it to be proven that you are wrong, but until then every time strengthens your argument.
Have you created or invented anything? (No) Do the colors exist (Yes). Does the pattern exist (Well, in your observation, Yes). Did God create the colors? Did God create the pattern? Did God purposely create the pattern, or was it an inadvertent result of some underlying physical properties?