The picture of the SSD appears to look like it may be an Apple OEM label although a lot of people out there like to trick people. I found an eBay item which purports to be an Apple OEM SanDisk SSD with the exact same label. Plus I saw a somewhat similar label for an Apple OEM Samsung SSD from a reputable third party vendor....it also did not have an Apple logo or Apple name. Unfortunately I rarely worked on the 2012 & Early-2013 MBPro Retina models so I am not certain what the Apple labels look like for those SSDs so I cannot confirm the SanDisk SSD you have pictured is an Apple SSD or just a third party SSD. The part number listed on the SanDisk label did show as an Apple SSD in Google search results for what that is worth these days.
What version of macOS are you trying to install? If this SSD previously had macOS 10.13+ installed and you are trying to install macOS 10.8 - 10.11, then it won't recognize the drive layout used by later versions of macOS. You need to use Disk Utility to erase the whole physical SSD before attempting to choose the "Install macOS" option. If you are booted to a macOS 10.13 installer, then you will need to click "View" within Disk Utility and select "Show All Devices" before the physical SSD appears on the left pane of Disk Utility.
- If installing macOS 10.13+, then Erase the whole physical SSD as GUID partition and APFS (top option).
- If you are installing macOS 10.11 or 10.12 (perhaps even 10.13 - 10.15 if macOS 10.13+ was never installed previously), then erase the whole physical SSD as GUID partition and MacOS Extended (Journaled)
- If you are installing macOS 10.8 to 10.10, then you need to partition & format the physical SSD using the instructions in the following article:
https://eshop.macsales.com/tech_center/formatting/Mac_Formatting_6-10_R3.pdf
If macOS 10.12.4+ was previously installed at some point in the past, then you should have access to the online Apple Diagnostics.
You may be able to use a third party M.2 NVMe SSD along with a Sintech SSD adapter (adapter must be compatible with a mid-2012 or early-2013 model). The Sintech SSD adapter is the only one which seems to be recommended because it appears to be the most compatible & reliable. Keep in mind not all SSDs are compatible with all computers or adapters so a third party M.2 SSD is very risky since it requires an extra third party adapter. None of the company's involved will assist if there is any problem since this is a completely unsupported configuration.
You can get the exact model of the Mac by entering the system serial number on the check coverage page here (please do not post the serial number on the forum since it is considered personal information):
Check Your Service and Support Coverage - Apple Support
@Grant is absolutely correct that if you are using a third party NVMe based SSD, then you will need to use & install macOS 10.13+ in order to use the laptop with a third party NVMe based internal SSD. Since the history of this laptop is unknown, using a third party SSD is very risky although you can determine the version of system firmware using the command line while booted to a macOS installer (Internet Recovery or macOS USB installer).
Unfortunately you have two major unknowns here. You don't know any history about the laptop nor about the SSD you purchased. One or both of them may be faulty. Or it is possible the SSD pictured (if an Apple OEM SSD) was made for one specific model and won't work in the other model associated with the A1425 designation. I have personally seen this happen with the Late-2013 - 2015 models. To check if this is the case, try installing Linux Mint onto the SanDisk SSD. Linux won't have any restrictions like macOS does. If Linux Mint works, then you know both the laptop & SSD are good, but you have an SSD that is incompatible with this specific model laptop (at least according to macOS behavior).