Powershell Split File Based On Regex Replace Python