By default, the Text widget only support text and HTML. With the code below, shortcodes would be supported. Add this code to functions.php if your theme/child theme

add_filter('widget_text', 'do_shortcode');