A user has requested the ability to have class macro target variables, e.g. @Warlock, @EnemyWarlockPet.
From CurseForge:
Verubato commented
Since this request FrameSort now has EnemyFrame123Pet macro variables and keybindings which might suite the original request.
Haven't had any more interest in this so just going to close the issue.