0👍
✅
The distance value 1196.61
does not match the regex because of the decimal point.
You can use
(?P<distance>[\w\.]+)
which matches uppercase A-Z, lowercase a-z, digits 0-9, hyphens and decimal points.
Alternatively, you could use
(?P<distance>[\d\.]+)
Which only matches digits 0-9 and decimal points.
Source:stackexchange.com