Folder duplicate ignores parent path when parent name contains a dot

Duplicating a folder inside a parent folder whose name contains a dot produces an incorrect duplicate name

When duplicating a subfolder whose parent directory name contains a dot (e.g. something.ext/subfolder), the resulting duplicate is created outside the parent and named using only the portion before the dot (something), as if the dot were treated as a file extension separator.

Expected behavior: the duplicate should be created adjacent to the original with a name like subfolder (copy) or similar.

Obsidian version: 1.11.7 — macOS

Thanks.

Please, next time follow the BR template.

Will be fixed 1.12.4 ETA unknown.