Support indent regex with inline comments in Python (#37903)

Closes #36491

This issue is caused by the Python language configuration treating
compound statements (such as for loops and if statements) that end with
an inline comment as not requiring an increased indent.

Release Notes:

- python: Correctly indent lines starting the blocks (for, finally, if,
else, try) that have trailing comments.
6ae83b4740ImFeH2 committed on 9/11/2025, 11:39:39 AM· committed by GitHubparenteec6bfe
2 files changedLine totals unavailable