I've deliberately delayed responding about your bullet, in the hope that somebody else could provide 100%-certain ID for it. At this point, it looks like that's not going to happen, so here's my reply.
You asked:
>
Yeah, there are small ridges in the groove. Does anyone know what these ridges are called?
In bullet-collector lingo, the groove (it is not a "ring") which encircles the bullet's main body is called a cannelure. The tiny multiple parallel ridges inside the groove are called "reeding" -- which is what you see on the edge of some American coins. Thus, what we see on your bullet is called a "reeded cannelure" although some people call it a "knurled cannelure." See the example of it in the photo below, which shows a .32 pistol bullet from the early1900s.
Bullets with a reeeded cannelure are ALWAYS machine-made, never cast in a bulletmold.
As a civil war relic digger and dealer for over 40 years, I've closely studied "historical" (pre-20th-Century) American bullets. The earliest date my research has turned up so far for a reeded cannelure/groove on an American bullet is 1877.
Now, about your bullet's identification:
When you were asked to tell us its precisely-measure diameter (in thousandths of an inch), you repeated that it is 13mm, which translates to .512-inch. That precise diameter is correct for a .50-caliber breechloading firearm bullet. (A 13mm-caliber bullet is actually a bit larger than .512-inch.)
As a .50-caliber, your bullet's body is too short to function properly as a rifle bullet. Therefore, it must have been made for use in a .50 pistol.
Your excavated bullet shows the typical greyish-white patina we civil war bullet diggers commonly see on PURE LEAD bullets from that era. Being made of pure-lead instead of post-civil-war-to-today "hardened-lead" alloy, AND being a machine-made bullet, indicates your bullet was manufactured sometime between 1877 and about 1890. (I said "indicates" because there are always a few exceptions to any rule.)
In trying to deduce your bullet's correct identification, we must include the fact that you dug it in the US, not in Europe or elsewhere... so, it is most probably American-made.
Considering all of the factors listed above, I believe the "most likely candidate" identification for your bullet is that it was made for use in a .50 Remington 1871 US Army Rolling Block single-shot pistol.
https://americanhistory.si.edu/collections/search/object/nmah_438555