FindPython: enhance robustness of version extraction from library name

Fixes: #21105
38 jobs for !5135 with bug-fixes in 56 minutes and 17 seconds (queued for 3 seconds)
latest merge request