I wanted to know is studying astronomy haram? And by astronomy I mean studying of planets, stars and galaxies and how they are made and what things are there in it and etc. I am not believing in any kind of shirk or astrology like stars decide what happens here etc. I don't believe in those, will it still be haram?
In Western astronomy, most of the accepted star names are Arabic, a few are Greek and some are of unknown origin. Typically only bright stars have names.
— List of Arabic star names - Wikipedia
During Europe's "dark ages", it was Muslim scholars and scientists that continued the development of mathematics and sciences such as astronomy. The word "astronomy" means to name the stars, and most of those names are Arabic (or Anglicized forms thereof).
Similarly, the English word "Chemistry" comes from "Alchemy", which is a corruption of the Arabic "al-kīmiyāʾ" (ﺎﻠﻜﻴﻤﻳﺍﺀ). It too came from a Greek word, but it demonstrates that modern science largely came to us via the Muslim world.