The regex you used doesn’t isolate numbers at the end of the string, which is why the results aren’t coming out right. Try using (\d+(\.\d+)?$) to extract decimal or integer numbers that appear at the end of the string.
(\d+(\.\d+)?$)