There is no way to recover a formatted SD card with all its contents. Instead of that, all to do is quickly download a data recovery app that can recover photos/pictures from a formatted SD card.