import re
test_str = "2890191245"
print(re.sub("(?<=\d)(?=(\d{3})+$)", ",", test_str).split(","))