The reported regex strings should be prefixed with "r" to become raw strings (like r".*\..*") or the backslashes need to be double escaped (like ".*\\..*"). I recommend the first option.
Note that a simple backslash triggers string escaping only (like "\n" or "\e", f.ex.), but what you are trying to achieve there is to escape characters from the regex (e.g. "." for a literal dot character and not "any character") or use special regex sequences (like "\w").
I do encounter a heap of warnings (yes, I zipapp'ed s3cmd) which suggest proper bugs:
The reported regex strings should be prefixed with "r" to become raw strings (like
r".*\..*"
) or the backslashes need to be double escaped (like".*\\..*"
). I recommend the first option.Note that a simple backslash triggers string escaping only (like "\n" or "\e", f.ex.), but what you are trying to achieve there is to escape characters from the regex (e.g. "." for a literal dot character and not "any character") or use special regex sequences (like "\w").