Python Regex Split String Into Array Of Objects Javascript