Is it possible to import one level up without knowing the folder name?

If I have /plugins/myplugin/core and /plugins/helloworld/core and want to import that “core” folder, but I don’t know the name of the plugin folders, can I do something like “import ‘/plugins/…/core’”? (if that makes sense)

Any way to achieve this at all?