VSCode is commenting out code after /* in string literals. How can I disable this?

VSCode is commenting out all the code behind from the part ‘/*’ in the string literal on my JS file.

enter image description here
I don’t want this behaviour.

Is there anybody who experienced some similar things like this using VSCode?

Whole code of this file is here

import { json } from '@sveltejs/kit';

async function getPost() {
    let posts = [];

    const paths = import.meta.glob('/src/posts/*.md', { eager: true });

    for (const path in paths) {
        console.log(path);
    }

    return posts;
}

export async function GET() {
    const post = await getPost();
    return json(post);
}

I tried to escape the asterisk in the string literal but the prettier auto fixed it.

'/src/posts/*.md' => /src/posts/*.md' (auto fixed by prettier)