Polymer dynamics under soft confinement in a self-assembled system