If you only re partitioned without doing anything else to the drive for the last few months than you can use one of the many partition recovery softwares like from minitools
https://www.minitool.com/free-tools/minitool-partitionrecovery.html
if you want a completely free and opensource solution there is testdisk.
https://www.cgsecurity.org/wiki/TestDisk
These programs search for previous information on how the partitions used to be and try to recreate them,they do not act on the area were the actual data is stored.
If those programs do not work for you you will have to use file recovery software,again there are many free versions out there but they will search for everything and you will have to use a second drive as the destination to not destroy any data on the drive,they usually leave you with a huge pile of files you will have to sort through yourself.