Regexps in FindBoost assumed that python's minor version had only one digit. That became not true for 3.10. Fixes: #23025