Regex for Python Optional to None Union

For VS Code find and replace regex for Python type hints.

Optional\[((?:[^[\]]|\[(?:[^[\]]|\[[^\]]*\])*\])*)\]

$1 | None