regex splitting at the very last space at the right

0
PY
py
OUTPUT