Specify a field dynamically using section handle
I don't think your approach makes sense but you can use twigs Attribute function

{% for block in attribute(sidebar, entry.section.handle ~"Sidebar") %}