Came across this behaviour today while typing python inside a code block.
I generally agree that the suggestions are inappropriate when writing in a programming language block.
However, there may be specific types of block where the behavior is helpful, such as Obsidian’s query language, or the Data View plugin.
Perhaps a filter to allow suggestions in certain languages and not others?