Get Array Index Python String Replace With Regex