Programmatically load the page variant being used on path or node object
In order to get the variant being used by the node I was able to retrieve the info inside the array returned by

$node-&gt;panelizer-&gt;getValue()


And to get the page I used

$page = \Drupal::entityTypeManager()-&gt;getStorage('page')-&gt;loadByProperties(['path' =&gt; $link]);