Pages are editable in Gutenberg, but posts are coming up in classic editor

There are code errors… any is not a post type and you are setting the 2nd function argument to $post instead of $post_type so it is undefined anyway.

Also $post is not provided in this context, there is a separate filter for filtering by specific posts (gutenberg_can_edit_post / use_block_editor_for_post)

If you want to force all post types to use Gutenberg you don’t need to check any conditions anyway, you can just return true.

function shapeSpace_enable_gutenberg_post_type($can_edit, $post_type) {
    return true;
}

If you find the need to use a combination of Classic and Block Editor, here’s a plugin solution I wrote a little while back for that purpose:
https://wordpress.org/plugins/guten-free-options/