Your regex seems over-complicated and doesn't check for playlist.m3u8 at all. Why not keep it simple with
^https://edge.*playlist.m3u8$
-
^https://edge
line must start with "https://edge"
-
.*
followed by zero or more characters
-
playlist.m3u8$
string ends with "playlist.m3u8"