windows partition deleted by boot camp assistant but space is not restored
As commented by David Anderson in comment the solution to this problem was this command 

sudo diskutil apfs resizeContainer disk0s2 0


No idea how it worked or what it does but i got my storage space back.