How to recover lost partition after diskutil erasevolume?
You can not recover the free space because the small 16 MB "Microsoft Reserved" partition is between the APFS container and this free space. The command below will remove the "Microsoft Reserved" partition and add the 16 MB to the 24.9 GB of free space that already exists.

diskutil eraseVolume free none disk0s3


The next command will expand the APFS container to occupy the free space. 

diskutil apfs resizeContainer disk0s2 0