Rollup chocking on jsdoc comment in atlaskit

Running with vite, it was working a couple months back but no longer. Tried with vite 2.x and 4.x, same result.

I get this error:

[commonjs--resolver] Invalid regular expression flag (23:3131) in /Users/ilya/workspace/tg/integrations/projects/jira/static/onboarding/node_modules/@atlaskit/theme/node_modules/@atlaskit/ds-lib/dist/esm/utils/deprecation-warning.js
file: /Users/ilya/workspace/tg/integrations/projects/jira/static/onboarding/node_modules/@atlaskit/theme/node_modules/@atlaskit/ds-lib/dist/esm/utils/deprecation-warning.js:23:3131
21:  * Logs a prop deprecation warning to console once during a session.
22:  *
23:  * @param packageName Use process.env._PACKAGE_NAME_ instead of a static string.
                                                                                    ^
24:  * @param propName Prop that is deprecated.
25:  * @param predicate If true the deprecation warning will be logged to console.
error during build:
SyntaxError: Invalid regular expression flag (23:3131) in /Users/ilya/workspace/tg/integrations/projects/jira/static/onboarding/node_modules/@atlaskit/theme/node_modules/@atlaskit/ds-lib/dist/esm/utils/deprecation-warning.js
    at Object.pp$4.raise (file:///Users/ilya/workspace/tg/integrations/projects/jira/static/onboarding/node_modules/rollup/dist/es/shared/node-entry.js:21109:13)
    at Object.pp$1.validateRegExpFlags (file:///Users/ilya/workspace/tg/integrations/projects/jira/static/onboarding/node_modules/rollup/dist/es/shared/node-entry.js:21439:12)
    at Object.pp.readRegexp (file:///Users/ilya/workspace/tg/integrations/projects/jira/static/onboarding/node_modules/rollup/dist/es/shared/node-entry.js:22809:8)
    at Object.pp.readToken_slash (file:///Users/ilya/workspace/tg/integrations/projects/jira/static/onboarding/node_modules/rollup/dist/es/shared/node-entry.js:22584:51)
    at Object.pp.getTokenFromCode (file:///Users/ilya/workspace/tg/integrations/projects/jira/static/onboarding/node_modules/rollup/dist/es/shared/node-entry.js:22747:17)
    at Object.pp.readToken (file:///Users/ilya/workspace/tg/integrations/projects/jira/static/onboarding/node_modules/rollup/dist/es/shared/node-entry.js:22464:15)
    at Object.readToken (file:///Users/ilya/workspace/tg/integrations/projects/jira/static/onboarding/node_modules/rollup/dist/es/shared/node-entry.js:24930:24)
    at Object.pp.nextToken (file:///Users/ilya/workspace/tg/integrations/projects/jira/static/onboarding/node_modules/rollup/dist/es/shared/node-entry.js:22455:15)
    at Object.pp.next (file:///Users/ilya/workspace/tg/integrations/projects/jira/static/onboarding/node_modules/rollup/dist/es/shared/node-entry.js:22416:8)
    at Object.pp$9.eat (file:///Users/ilya/workspace/tg/integrations/projects/jira/static/onboarding/node_modules/rollup/dist/es/shared/node-entry.js:18340:10)

If i remove every instance of this comment, it works:
https://bitbucket.org/atlassian/atlassian-frontend-mirror/src/9bd20d1f6fc57ac724df643e799b1cd87b1acd45/design-system/ds-lib/src/utils/deprecation-warning.tsx?at=master#lines-28

This happens with ds-lib v2 but not v1 (it doesn’t have that second jsdoc comment). Specifically removing this line:

 * @param packageName Use `process.env._PACKAGE_NAME_` instead of a static string.

resolves it, i think it’s the content inside the backticks…