The study examines the behavior of vortex-like magnetic inhomogeneities that arise in a ferromagnetic disk with spatially modulated uniaxial anisotropy under magnetic fields of varying orientations. The research identifies the characteristic remagnetization stages of the vortex-like inhomogeneities formed in the region of the defect. critical fields of their rearrangement are found and an explanation is given for the difference in the behavior of these inhomogeneities in perpendicular and planar magnetic fields. The effect of the helicity of the magnetic skyrmion localized on the defect on its remagnetization process in the planar field is revealed.