I really should get some sleep 😛 The shortcode is [masterslider] and I manually wrote [metaslider].. That meta box must’ve gotten into my mind..
Just change the appropriate line to this:
value="<?php echo esc_html($value); ?>">
and it works. Thanks @Howdy_McGee for pointing me to the right direction! Also @s_ha_dum for additional knowledge.