$ curl -sL https://www.python.org | sed -nr 's/^<p>Latest:[^>]+>Python\s+([0-9]+(.[0-9]+)+).+/\1/p'
$ curl -sL https://www.python.org | grep '^<p>Latest:' | grep -oP '(?<=Python )[0-9]+(.[0-9]+)+'
$ re='<p>Latest:[^>]+>Python\s+([0-9]+(.[0-9]+)+)'
$ [[ $(curl -sL https://www.python.org) =~ $re ]] && echo ${BASH_REMATCH[1]}